Solved

Batch file to end task

Posted on 2002-07-10
3
284 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
  • 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows 2000 Kerberos problem 5 333
Locking down a taskpad 1 169
Connect Windows 8 VPN to ISA Server 2000 VPN 5 128
Windows 2000 unable to connect to the internet by ethernet cable 14 100
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…
ConnectWise and their customers need to ensure critical alerts automatically reach the right person at the right time. MSP superheros efficiently respond to these alerts key is providing automatic, intelligent alerting that generates a complete audi…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

860 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