Solved

Can Taskmgr end a process from the command line?

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

The use of stolen credentials is a hot commodity this year allowing threat actors to move laterally within the network in order to avoid breach detection.
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

758 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now