I have three batch files ,
open.bat
run.bat
process.bat
open.bat calls run.bat and run.bat calls process.bat .. All the three are keep running , i know there is a way to kill cmd.exe .. But, my problem is how to kill particular cmd.exe which running my batcg files ?
In my case i need to kill open.bat when process.bat is closed.
I am noob in this, So, guide me as much as detail u can. Thank U.
cmd.exe / open.bat
cmd.exe / run.bat
cmd.exe / process.bat
how to mention the particular cmd.exe to kill it ? using vbs or cmd ?
Lots of thanks in advance.. :)
callwhen open.bat calls process.bat , the open.bat will keep running to give commands for run.bat , So all the three files are required to keep running in my case. But, if user close/killprocess.batit need to killopen.batand run.bat must need to keep running.. any solution for this ?? – Philip Oct 06 '17 at 05:13startCMD or a file that associates to CMD (which .bat files normallly do) andstartcan also set the new window title to a value you can then filter on (unless/bskips it). – dave_thompson_085 Oct 07 '17 at 06:03startcommand instead ofcallit will open new window of cmd.exe with separate title, i hope am right. If so, then my question is how to kill that particular process opened cmd.exe window with new title ? – Philip Oct 07 '17 at 07:49start(without/b) it creates a new window. The new window has a unique title if you specify a title that is unique; dostart /?for syntax. If the new window has a unique title you can kill it by filtering on that title as explained in the Q @DavidPostill linked to. – dave_thompson_085 Oct 08 '17 at 00:02start "my unique title" ...– DavidPostill Oct 08 '17 at 00:17