1.

Solve : Urgent Help : Batch File Terminate Program?

Answer» DEAR all,

I'm newbie in Batch File, I would like to seek assistance here.

The problem is, how to TERMINATE a program(e.g Calc.exe) in batch file and after terminate it, I would like to restart the program again.

How to do it in batch file? please help

Thanks in advance


Cheers,
yymaeAutoIt http://www.autoitscript.com/autoit3/ can solve this problem for you.Besides AutoIt, do you have another solutions?I don't have another solution, but I never needed another solution.  Depends on the OS you're using.. if you're using winXP, you can USE taskkill to kill any PROCESS.... for example, to kill calc.exe,

"taskkill /F /IM calc.exe"

"taskkill /?" - if you need more infor on what the F and IM stand for

if you're using an older OS like windows98, you'll have to download a resource from the microsoft website that includes "kill.exe" which will do the same thing as taskkill


Discussion

No Comment Found