Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 296
  • Last Modified:

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.
0
madhour
Asked:
madhour
  • 2
1 Solution
 
jkrCommented:
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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now