Solved

Can Taskmgr end a process from the command line?

Posted on 1997-08-08
5
2,165 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

696 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