title: How can a batch file run a program and set the position and size of the window?
body: <p>I have batch file that sets up the desktop environment for me when I am writing code. The file is named: <code>SetEnv.cmd</code> and it  opens 3 other windows:</p>
  
  <ol>
  <li>An instance of Windows Explorer that is set to the app server's deploy directory.</li>
  <li>A second instance of Windows Explorer that is set to the directory where my deployment file is written.</li>
  <li>A console window to start my application server.</li>
  </ol>
  
  <p>Here are the contents of <code>SetEnv.cmd</code>:</p>
  
  <pre><code>Explorer /n,c:\develop\jboss-4.2.3.GA\server\default\deploy
  Explorer /n,c:\develop\Project\Mapping\deploy
  cmd /c SetupEnvCmd.cmd
  </code></pre>
  
  <p>And here are the contents of <code>SetupEnvCmd.cmd</code>:</p>
  
  <pre><code>cd C:\develop\jboss-4.2.3.GA\bin
  run
  </code></pre>
  
  <p>Every time I run this, I have to waste time rearranging and resizing the windows. I don't want to run the windows minimized, because I interact with each window many times while writing and testing code. Is there any way I can control the position and/or size of the windows that are opened from within the script?</p>