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
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.exeTASKKILL /F /IM firefox.exe
mike
| « Testing c-Shell optional ... | How to ping someones ip a... » |