Link to home
Start Free TrialLog in
Avatar of jayrod
jayrodFlag for United States of America

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.
Avatar of kcid
kcid

the command you can use is: exit
Look up the options for exit in dos by typing: exit /?

Greetings,

Kcid
Avatar of jayrod

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
ASKER CERTIFIED SOLUTION
Avatar of pjbcba
pjbcba

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jayrod

ASKER

I was hoping to do this without having to modify the existing batch files but This answer is the closest.

thank you