Batch file to end task

We are trying to automate a process to close a particular program using a batch file.  Does anyone have an idea on how to do this.
madhourAsked:
Who is Participating?
 
jkrConnect With a Mentor Commented:
You could use e.g. PsKill (Freeware, http://www.sysinternals.com/ntw2k/freeware/pskill.shtml) to terminate the program by using the program name as a parameter - here's the 'Usage' information:

Running PsKill with a process ID directs it to kill the process of that ID on the local computer. If you specify a process name PsKill will kill all processes that have that name.

usage: pskill [-?] [\\computer [-u username] [-p password]] <process name | process id>
0
 
madhourAuthor Commented:
Was not the answer I was looking for but led me to my answer which is just as good.  Thanks.  I did not know Windows 2000 had a kill process.  tskill.exe
0
 
jkrCommented:
>>tskill.exe

Which (AFAIK) is part of the ResKit, but not of a regular installation...
0
All Courses

From novice to tech pro — start learning today.