Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Running batch files and closing the dos box while they're running
Name: Libby Date: January 30, 2001 at 15:55:39 Pacific
Comment:
Hi, I've written a program to run some servers (in java) and a batch file to run this program. How do I get the batch file to start the java program, and then close the dos box, leaving the java program still running? thanks!
Name: Laurence Date: January 31, 2001 at 09:44:42 Pacific
Reply:
If it can be assures that the ANSI.SYS driver is not loaded and/or that the background color of the window is black, then just add these two commands at the end of the procedure ...
cls @exit
BTW, a colored background is considered non-blank (set via an ANSI string). If the desire is to be iron clad, even when ANSI.SYS is loaded, use ...
for %%v in ("prompt $e[m" "echo on" cls) do %%v @exit
Regardless of the status of the display, checking the 'Close on exit' selection on the Program tab of a shortcut to the batch procedure will ALWAYS cause the window to close.
0
Response Number 2
Name: Dana Hunter Date: April 4, 2001 at 00:55:21 Pacific
Reply:
Seems it would be easier to make the Java program a desktop ICON. Or make the batch file a desktop ICON and select "PROGRAM" tab , "CLOSE ON EXIT".
Summary: Personally, I've never understood why so many people on this site get their feathers ruffled because someone posts a batch file question in the DOS section. While I do agree that there are better sec...
Summary: I thank you for the information. I'll check out the web site. I will try it out after the holiday. I take exception to your statement though. Quote: "well u didnt search very well." I typed in severa...