Solved

Can Taskmgr end a process from the command line?

Posted on 1997-08-08
5
2,161 Views
Last Modified: 2013-12-28
I know how to end a task using Task Manager.  But I'd like
to invoke TaskManager (or some other program) from the
"MS-DOS" command line to end a task.  E.g., "taskmgr kill <process name>".

Is there a way?.  If not, is there some other "kill" program that I can start from the command line?
0
Comment
Question by:elfield
  • 3
5 Comments
 

Author Comment

by:elfield
ID: 1781180
Edited text of question
0
 

Author Comment

by:elfield
ID: 1781181
Edited text of question
0
 
LVL 95

Accepted Solution

by:
Lee W, MVP earned 50 total points
ID: 1781182
I have found a utility that can do as you ask, however, you must use a process ID, not the name.  (I don't think even in unix you can kill a process by name - but I could be wrong).  The Windows NT resource kit may also contain utilities for this.  If you'd like to try my suggestion, I have placed what I believe to be the freeware software on my FTP site.  
It can be found at ftp://ziggy.cshl.org/sounds/WAV/utils.zip

This file contains manny other unix utilities ported to NT and 95, including tail, tar, pwd, rm, ls, and about 30 or so others.  Some work with 95 and NT, some work only with NT.  Good Luck
0
 

Author Comment

by:elfield
ID: 1781183
Thanks very much for utils.zip.

But I realize I didn't write my question properly.

I'm looking for a "already built-into NT" method of killing a program by name from the command line.  Since Task Manager is able to do this graphically, I'm hoping it can also be done from the command ;ine (e.g., using Task Manager or some other program that ships with NT).

In fact, I wrote my own program that seems to work, but I don't trust it enough to give to my customers (I could be in trouble if it had some expensive side effect).  That's why I'm hoping that some Microsoft NT program or NT Resource Kit program can do the job.

So I appreciate your response (grade = excellent) and I'll resubmit my question -- hopefully more clearly.  

0
 

Expert Comment

by:iqbalj
ID: 2347491
Hi guys,

could you please let me know how to 'End a task using Task Manager by process ID from command prompt.

I tried the above site; not there.

Thanks.

iqbalj@yahoo.com
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

776 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