Solved

Batch file to end task

Posted on 2002-07-10
3
286 Views
Last Modified: 2008-01-09
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
Comment
Question by:madhour
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 200 total points
ID: 7144063
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
 

Author Comment

by:madhour
ID: 7144127
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
 
LVL 86

Expert Comment

by:jkr
ID: 7144140
>>tskill.exe

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

Featured Post

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
In order to fulfill our mission of inspiring learning in the technology community, Experts Exchange is launching a Course of the Month program. Premium and Team Account members will have access to one course per month as a part of their membership, …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question