jayrod
asked on
I wish to close one batchfile window with another batch file in Windows Dos
I have a batch file that calls two other batchfiles called start_batch.bat
start /min e:\somedir\some.bat
start /min e:\otherdir\other.bat
.....
I'd like a batchfile called stop_batch.bat
??close e:\somedir\some.bat
?close e:\otherdir\other.bat
I'm having trouble finding the ??Close command that I can use.
start /min e:\somedir\some.bat
start /min e:\otherdir\other.bat
.....
I'd like a batchfile called stop_batch.bat
??close e:\somedir\some.bat
?close e:\otherdir\other.bat
I'm having trouble finding the ??Close command that I can use.
ASKER
Nope that doesn't do it.. What I have is... One window open running a process.
I open a second window and I'd like to kill the first window. The only way I can think to do it is to call the batch as a service and use a net stop argument but I was hoping to not have to do that.
Any other ideas?
Thank you for the input though
I open a second window and I'd like to kill the first window. The only way I can think to do it is to call the batch as a service and use a net stop argument but I was hoping to not have to do that.
Any other ideas?
Thank you for the input though
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I was hoping to do this without having to modify the existing batch files but This answer is the closest.
thank you
thank you
Look up the options for exit in dos by typing: exit /?
Greetings,
Kcid