title: Can I send commands to a program I opened in a .bat file?
body: <p>I want to create a batch file that I can click on that launches all of the stuff I need for rails development:</p>
  
  <p>1)A command prompt opened to the folder the code for the project is in</p>
  
  <p>2)A command prompt opened to the folder the project is in
    -Then I want to have that window call "rails s"</p>
  
  <p>3)Send the windows key + left-arrow to the first command prompt to move it to the left side of the screen</p>
  
  <p>4)Do (3) with the second window, but with the right side of the screen</p>
  
  <p>5)Open up a file explorer to the folder I am developing in</p>
  
  <p>6)Open up sublime text to the folder that I am developing in</p>
  
  <p>What I have so far is:</p>
  
  <pre><code>@echo off
  start cmd /k cd C:\projects directory\code
  start cmd /k cd C:\projects directory\code
  subl C:\\"projects directory"\code
  </code></pre>
  
  <p>Is what I want to do possible?</p>