lermytte
asked on
Detecting end of a batchfile in a doswindow and closing it
When I create a new process (which is a batch file running in a doswindow) with createprocess or shell the window will not close when the batchfile is done (I even tried to put exit as the last command in the batch file but it won't help). By the way how can you minimize the doswindow automatically with createprocess
Thanks in advance
Thanks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SORRY... I read your words too quick. Mine is not help for you.
Set the properties of COMMAND.COM to be Run Minimized and Close on Exit...
The command to invoke the batch file also needs the /C switch to let the OS know not to leave COMMAND.COM resident.
SHELL( "C:\COMMAND.COM /C MyBatch.BAT"), 1
I have code to the ExecCmd that will run and wait for completion on my web page: www.cyberchute.com/rvbus.
M
The command to invoke the batch file also needs the /C switch to let the OS know not to leave COMMAND.COM resident.
SHELL( "C:\COMMAND.COM /C MyBatch.BAT"), 1
I have code to the ExecCmd that will run and wait for completion on my web page: www.cyberchute.com/rvbus.
M