Go Back   Computer Forums > General Computing > Hardware
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 01-03-2008, 05:28 AM   #1
Bogan
 
Neodude112320's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 8,471
Send a message via MSN to Neodude112320
Default Command to Kill process?

Is there a way to kill a process through the command prompt?
__________________

__________________
Desktop:BitFenix Survivor~Gigabyte GA-P67A-UD3R~ i7 2600K @ 4hz~AMD 6870 1GB~12gb Team Elite DDR3 1333~3xWD In RAID5~W7 Ult
Laptop:Alienware M11x~ i7-2637M 1.7GHz~16GB 1333MHz DDR3~GeForce GT 540M~W7 Ult
Neodude112320 is offline   Reply With Quote
Old 01-03-2008, 05:55 AM   #2
In Runtime
 
Join Date: Oct 2007
Posts: 333
Default Re: Command to Kill process?

tskill (pid#)
__________________

TheLastWolf is offline   Reply With Quote
Old 01-03-2008, 06:43 AM   #3
Daemon Poster
 
mayorredbeard's Avatar
 
Join Date: Nov 2004
Posts: 1,246
Default Re: Command to Kill process?

If you know the name of the process, you don't need to know the pid# If you do not know the pid#, which are often obscure, you can just type /IM after the word taskkill. This indicates your going to call it by its image name. So Firefox is Firefox.exe, and Photoshop would be Photoshop.exe. Much simpler.

Also throwing in a /f forcefully quits the program. Kinda like opening the task manager. But you will lose unsaved data.

You could just do:

taskkill /IM notepad.exe

or you could do this

taskkill /F /FI "USERNAME eq Bob"

Which would kill all processes opened by the user bob. Kinda neat if your computers freezing up and you can access the cmd prompt.

Type "taskkill /?" for a menu with all the options.
__________________
Karma/rep is always appreciated
01010010011001010110010001100010011001010110000101 11001001100100
010011110111010101110100

There are only 10 kinds of people in this world. Those who can read binary, and those who can't.
mayorredbeard is offline   Reply With Quote
Old 01-03-2008, 03:42 PM   #4
Bogan
 
Neodude112320's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 8,471
Send a message via MSN to Neodude112320
Default Re: Command to Kill process?

Thx Heaps,Exactly what i was looking for!!!
__________________
Desktop:BitFenix Survivor~Gigabyte GA-P67A-UD3R~ i7 2600K @ 4hz~AMD 6870 1GB~12gb Team Elite DDR3 1333~3xWD In RAID5~W7 Ult
Laptop:Alienware M11x~ i7-2637M 1.7GHz~16GB 1333MHz DDR3~GeForce GT 540M~W7 Ult
Neodude112320 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 03:48 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0