(Msg. 1) 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 ?
(Msg. 2) 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.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.
>
(Msg. 3) 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... DeleteThis @nospam.com> wrote:
> Have you tried quotes around the process name?
> pskill "my long program name"
> Louis
(Msg. 4) 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.
(Msg. 5) Posted: Wed Mar 21, 2007 5:18 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?)
"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.
(Msg. 6) Posted: Wed Mar 21, 2007 5:18 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?)
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.
>
>
(Msg. 7) 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....TakeThisOut@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
>
(Msg. 8) Posted: Sat Mar 24, 2007 12:01 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
> >
>
All times are: Eastern Time (US & Canada) (change) Goto page 1, 2
Page 1 of 2
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum