|
| |||||||||
| Tags: kill command, process, pskill, window 2000 |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| How to use pskill or kill ... to kill a process with a name like "Hello There" Normally, I find that a process would have a image name like svchost.exe. But I have a program which does not have extension and has a space in it, eg "Hello There" (not the real image name). I try to use pskill or kill command to remove it but it does not work. I don't want to kill it by the taskid as I want to kill it via a batch. So any advice how to kill such procoesses ? Thanks a lot. |
|
#2
| |||
| |||
| Re: How to use pskill or kill ... to kill a process with a name like "Hello There"
Have you tried quotes around the process name? pskill "my long program name" |
|
#3
| |||
| |||
|
Yes. Already tried... pskill says Process does not exist. Kill - no output but process still running. Kill it by its process number. TList.exe or tasklist.exe will give you the number. But I dont' want to kill by process number if possible. The reason is that I'm running it in a batch and I can't hardcode the process number. |
|
#4
| |||
| |||
|
That's no valid reason at all! The following batch file will do exactly what you want: @echo off for /F %%a in ('tlist ^| find /i "Outlook"') do echo kill %%a Remove the word "echo" in order to activate the kill command. Yet to try this cause I use the pskill or kill command. Don't have the tlist command. Will search for it. Thanks again. I'm sure there is a tlist/tasklist equivalent in the famous stable of tools at www.sysinternals.com. |
|
#5
| |||
| |||
|
found that there is a space at the back of the process. So when I just use quote and add a space, pskill is able to kill the process. Type pskill.exe /? at the Command Prompt to see the full syntax. |
|
#6
| |||
| |||
|
But , how to kill a process in windows 2000 professinal using cmd or a batch file can anyone help ?? its not working |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "How to use pskill or kill ... to kill a process with a name like "Hello There"" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to remove a running process that gives you "access denied" when you try to kill it | jbclem | Window 2000 Help | 5 | 13-05-2009 08:49 AM |
| Facebook could "kill" Google | deveritt | Technology & Internet | 4 | 27-03-2009 09:26 PM |
| Latest vista Updates kill IE7 !! whats "navcancl from ieframe.dll" ?? | Marshall Kiam-Laine | Vista Help | 5 | 15-05-2007 01:33 PM |
| Latest vista Updates kill IE7 !! whats "navcancl from ieframe.dll" ?? | Marshall Kiam-Laine | Vista Administration | 5 | 15-05-2007 01:33 PM |
| Latest vista Updates kill IE7 !! whats "navcancl from ieframe.dll" ?? | Marshall Kiam-Laine | Vista File Management | 5 | 15-05-2007 01:33 PM |