?
Solved

Batch file to end task

Posted on 2002-07-10
3
Medium Priority
?
293 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 600 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

How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

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…
Hey fellow admins! This time, I have a little fairy tale for you. As many tales do, it starts boring and then gets pretty gory. I hope you like it. TL;DR: It is about an important security matter, you should read it if you run or administer Windows …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month12 days, 4 hours left to enroll

752 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