Multiple program run and close with one batch file????

January 31, 2012 at 22:38:20
Specs: Windows 7
Hi All,

'Ive been searching for quite some time to solve a problem. I have a batch file to open 2 programs at once, which is great. I have another batch file to close these programs together, but what im trying to figure out is:

Load both programs with the one batch file ( I have that figured out )
Close both programs when i click the 'Close' button on top right of window on 2nd loaded program.

Here is my launch file:

@echo off
start firefox http://ebay.com/
start notepad

@echo on

exit

Now how can i close both if i click on Notepads 'Close' button???


Any help with this would be very much appreciated.

VR


See More: Multiple program run and close with one batch file????

Report •

#1
March 21, 2012 at 09:56:03
rem in theory you might be able to use

@echo off
start firefox.exe http://ebay.com/
rem if you call notepad when it closes it will continue to the next line when it closes.
call notepad.exe

TASKKILL /F /IM firefox.exe

mike


Report •
Related Solutions


Ask Question