title: Using batch to run multiple java programs
body: <p>I wrote a batch file to run multiple batch files which run a java program separately. I am wondering if I need to pass an argument to the java program when I run it, how do I pass the argument when I start the station batch files?
  The main batch file looks like this:</p>
  
  <pre><code>@ECHO OFF
  set CLASSPATH=.
  ECHO open Server 
  
  start Server.bat
  ECHO open station1
  
  start station1.bat
  ECHO open station2 
  
  start station2.bat
  ECHO open station3 
  
  start station3.bat
  ECHO open station4 
  start station4.bat
  </code></pre>
  
  <p>The station batch file looks like this:</p>
  
  <pre><code>@ECHO OFF
  set CLASSPATH=.
  java ClientStation  arg1  arg2   arg3
  pause
  </code></pre>