• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

How do I write a batch file to execute four programs in Windows, then close the DOS window?

in win9x, making a shortcut to a .bat file, and in the properties of that shortcut there was a checkbot names "close on exit". i dont sse it in w2k.
about executing four programs, well thats simple like any batch file:
path1\file1
path2\file2
...
 
You can't normally run a batch file from another batch file. You have to use the special command.. "RUN thatfile.bat" or something like that.. Don't remember the name of that command.
 
You can't normally run a batch file from another batch file.

Sure you can. You have a BAT file with EXEs in it.

That worked Wolf, thanks.
 
Using Notepad, write the direct commandline to whatever program you want started:

cd\
c:\progra~1\utility1\program1.exe
c:\progra~1\utility2\program2.exe
c:\progra~1\utility3\program3.exe
c:\progra~1\utility4\program4.exe

*remember that DOS reads long names differently.

After you save your .bat file, create a shortcut to it. In the shortcut properties, select RUN MINIMIZED and check off CLOSE ON EXIT in the Program tab. Run the shortcut whenever you want to fire them off.
 
The RUN command is a native Windows command. If we're going to be picky about DOS compatibility, you had to use CALL to run a batch file within a batch file.
 
Back
Top