Need help writing a batch

weltern

Distinguished
Feb 2, 2011
3
0
18,510
this is what i need it to do, and in this order.' I've tried myself but i don't know the batch language that well yet, i hoping this will teach me a bit.

1. open an application

2. close explorer.exe

3. start up task manager

also if you would type down what code i would use to close another exe of my choosing that would be great.

thank you very much
 

festerovic

Distinguished
Jul 16, 2008
196
0
18,660
Look up DOS commands, then type them in order separated by a carriage return.

The first should be C:\program files\ (((this is the path to the .exe of the program))))
The second should look like TASKKILL /F /IM (((the .exe name))) /T
Th third should look like taskmgr
 

weltern

Distinguished
Feb 2, 2011
3
0
18,510
ok, thank you. but ive tried the batch file and it didnt work. the application cant be found, even though i give the batch the correct file path, and when taskmgr comes up explorer wont close until everything else closes.