Floppyman
05-01-2004, 01:37 PM
Hi all,
I need some help to get a batch file to close automatically once the program is launched. Here's the file:
@ECHO OFF
ECHO "This will launch the Myprogram Client."
CD C: \ProgramFiles\Myprogram\Client\
java -jar client.jar
Now once the JAR file launches the DOS windows stays open. I've tried to remedy this by entering @ECHO OFF followed by CLS, but the window still stays open. It seems that once the JAR file opens the Batch file will not want to on to the next line. Any ideas of this, or any other ideas how I can get the DOS window to close? TIA.
I need some help to get a batch file to close automatically once the program is launched. Here's the file:
@ECHO OFF
ECHO "This will launch the Myprogram Client."
CD C: \ProgramFiles\Myprogram\Client\
java -jar client.jar
Now once the JAR file launches the DOS windows stays open. I've tried to remedy this by entering @ECHO OFF followed by CLS, but the window still stays open. It seems that once the JAR file opens the Batch file will not want to on to the next line. Any ideas of this, or any other ideas how I can get the DOS window to close? TIA.