| Next: can't locate uxtheme.dll |
| Author |
Message |
dingdongdingdi1 External

Since: Jan 02, 2005 Posts: 76
|
Posted: Tue Mar 20, 2007 7:57 am Post subject: How to use pskill or kill ... to kill a process with a name like "Hello There" Archived from groups: microsoft>public>win2000>general (more info?) |
|
|
Hi !
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. |
|
| Back to top |
|
 |
3c273 External

Since: Mar 12, 2004 Posts: 86
|
Posted: Tue Mar 20, 2007 9:28 am Post subject: Re: How to use pskill or kill ... to kill a process with a name like "Hello There" [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
Have you tried quotes around the process name?
pskill "my long program name"
Louis
"flahmeshess" <dingdongdingding RemoveThis @yahoo.com> wrote in message
news:1174402623.074531.17350@y80g2000hsf.googlegroups.com...
> Hi !
>
> 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.
> |
|
| Back to top |
|
 |
dingdongdingdi1 External

Since: Jan 02, 2005 Posts: 76
|
Posted: Tue Mar 20, 2007 2:14 pm Post subject: Re: How to use pskill or kill ... to kill a process with a name like "Hello There" [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
Yes. Already tried... pskill says Process does not exist.
Kill - no output but process still running.
On Mar 21, 12:28 am, "3c273" <nos....RemoveThis@nospam.com> wrote:
> Have you tried quotes around the process name?
> pskill "my long program name"
> Louis |
|
| Back to top |
|
 |
dingdongdingdi1 External

Since: Jan 02, 2005 Posts: 76
|
Posted: Tue Mar 20, 2007 5:45 pm Post subject: Re: How to use pskill or kill ... to kill a process with a name like "Hello There" [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
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.
>
> Kill it by its process number. TList.exe or tasklist.exe will give
> you the number. |
|
| Back to top |
|
 |
"Pegasus External

Since: Oct 14, 2005 Posts: 1845
|
Posted: Tue Mar 20, 2007 7:14 pm Post subject: Re: How to use pskill or kill ... to kill a process with a name like "Hello There" [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
"flahmeshess" <dingdongdingding DeleteThis @yahoo.com> wrote in message
news:1174402623.074531.17350@y80g2000hsf.googlegroups.com...
> Hi !
>
> 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.
>
Kill it by its process number. TList.exe or tasklist.exe will give
you the number. |
|
| Back to top |
|
 |
"Pegasus External

Since: Oct 14, 2005 Posts: 1845
|
Posted: Tue Mar 20, 2007 10:08 pm Post subject: Re: How to use pskill or kill ... to kill a process with a name like "Hello There" [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
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.
"flahmeshess" <dingdongdingding.RemoveThis@yahoo.com> wrote in message
news:1174437911.327499.220340@o5g2000hsb.googlegroups.com...
> 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.
> >
> > Kill it by its process number. TList.exe or tasklist.exe will give
> > you the number.
>
> |
|
| Back to top |
|
 |
dingdongdingdi1 External

Since: Jan 02, 2005 Posts: 76
|
Posted: Fri Mar 23, 2007 5:08 am Post subject: Re: How to use pskill or kill ... to kill a process with a name like "Hello There" [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
Thanks. Yet to try this cause I use the pskill or kill command. Don't
have the tlist command. Will search for it. Thanks again.
On Mar 21, 8:57 am, "Pegasus \(MVP\)" <I... DeleteThis @fly.com> wrote:
> 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
> |
|
| Back to top |
|
 |
"Pegasus External

Since: Oct 14, 2005 Posts: 1845
|
Posted: Fri Mar 23, 2007 10:15 am Post subject: Re: How to use pskill or kill ... to kill a process with a name like "Hello There" [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
I'm sure there is a tlist/tasklist equivalent in the famous
stable of tools at www.sysinternals.com.
"flahmeshess" <dingdongdingding DeleteThis @yahoo.com> wrote in message
news:1174651714.674254.133150@p15g2000hsd.googlegroups.com...
> Thanks. Yet to try this cause I use the pskill or kill command. Don't
> have the tlist command. Will search for it. Thanks again.
>
> On Mar 21, 8:57 am, "Pegasus \(MVP\)" <I... DeleteThis @fly.com> wrote:
> > 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
> >
> |
|
| Back to top |
|
 |
dingdongdingdi1 External

Since: Jan 02, 2005 Posts: 76
|
Posted: Mon Mar 26, 2007 2:43 pm Post subject: Re: How to use pskill or kill ... to kill a process with a name like "Hello There" [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
Thanks for the help. I 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. Thanks again.
On Mar 23, 9:01 pm, "Pegasus \(MVP\)" <I... RemoveThis @fly.com> wrote:
> I'm sure there is a tlist/tasklist equivalent in the famous
> stable of tools atwww.sysinternals.com.
> |
|
| Back to top |
|
 |
knr External

Since: Oct 27, 2009 Posts: 1
|
|
| Back to top |
|
 |
Pegasus [MVP] External

Since: Apr 06, 2009 Posts: 18
|
Posted: Tue Oct 27, 2009 3:10 am Post subject: Re: How to use pskill or kill ... to kill a process with a name like "Hello There" [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
"knr" <knr.40p97a RemoveThis @DoNotSpam.com> wrote in message
news:knr.40p97a@DoNotSpam.com...
>
> But , how to kill a process in windows 2000 professinal using cmd or a
> batch file can anyone help ??
>
>
> --
> knr
> ------------------------------------------------------------------------
> knr's Profile: http://forums.techarena.in/members/149070.htm
> View this thread: http://forums.techarena.in/window-2000-help/709481.htm
>
> http://forums.techarena.in
>
Type pskill.exe /? at the Command Prompt to see the full syntax. |
|
| Back to top |
|
 |
knr External

Since: Oct 27, 2009 Posts: 1
|
|
| Back to top |
|
 |
|