|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (13 bit)
Join Date: Mar 1999
Posts: 6,791
|
Closing Batch files
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. |
|
|
|
|
|
#2 |
|
Registered User
Join Date: Nov 2001
Posts: 1,965
|
Hi Floppyman,
Use javaw instead of java. |
|
|
|
|
|
#3 |
|
Member (13 bit)
Join Date: Mar 1999
Posts: 6,791
|
Thanks for the reply aym_7. I tried your suggestion but the window still stays open (even when I instert the CLS command again). TIA.
|
|
|
|
|
|
#4 |
|
Registered User
Join Date: Nov 2001
Posts: 1,965
|
Hi Floppyman,
Try this: Code:
@ECHO OFF ECHO "This will launch the Myprogram Client." CD C:\ProgramFiles\Myprogram\Client\ start javaw -jar client.jar HTH |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|