Kill a Process

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Kill a Process

Post by armsys » Tue Dec 17, 2002 5:11 am

Is it possible to kill a window process such as hplamp.exe using Macro Scheduler?

Armstrong Wong
Hong Kong

Ernest

Post by Ernest » Tue Dec 17, 2002 8:19 am

Hi Armstrong,
if there's nothing like this in MSched, try to get "kill.exe" (NT-Resourcekit) or an equivalent, to run it from the command line.
Means first you've to identify the process ID of the process to kill (with another tool from the NT-Rkt. I'm not sure if it's named "tlist.exe"??).

Check http://www.google.com

E.

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Tue Dec 17, 2002 9:47 am

Hi Ernest,

Thanks a lot for your insider tips. I'll gather more info about kill.exe from Microsoft. I'm always impressed by the profound depth of your technical knowledge.

Nonetheless, I suppose Macro Scheduler combined with VBscript would be a far better solution than WinTask 4, IMHO. There are simply too many ad-, spy- and virus-ware hijacking our Windows tasks.

Cheers,
Armstrong Wong
Hong Kong

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Tue Dec 17, 2002 11:24 am

Hi Ernest,

Thanks to your tips, I wrote the following (partial) code for your comment:

run>c:\Windows\Command\taskkill.exe /FI "IMAGENAME eq AlarmWatcher.exe" /F
run>c:\Windows\Command\taskkill.exe /FI "IMAGENAME eq ctfmon.exe" /F
run>c:\Windows\Command\taskkill.exe /FI "IMAGENAME eq pptd40nt.exe" /F
run>c:\Windows\Command\taskkill.exe /FI "IMAGENAME eq nopdb.exe" /F
Label>End

After running the above script, the overall performance of my Windows XP Home-based computer improves dramatically. Please use the above script with caution.

Cheers,
Armstrong Wong
Hong Kong

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts