Delete a Process in Windows Task Manager?

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
marois999
Newbie
Posts: 2
Joined: Mon Jul 05, 2004 4:07 am

Delete a Process in Windows Task Manager?

Post by marois999 » Mon Jul 05, 2004 4:15 am

Once the Windows Task Manager is open and the Processes tab has been selected... is there a way to "End the Process" of an exe. For example, let's say I want to end DataKeeper.exe. The problem being, of course, that everytime I open Task Manager, DataKeeper.exe is in a different position in the list so "PressDown" x number of times is not going to work.

Any ideas?

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

Post by armsys » Mon Jul 05, 2004 12:10 pm

Hi marois999,

Please look up this. Alternatively, you may search with "kill" as the keyword.

Happy scripting.

Lumumba

Post by Lumumba » Mon Jul 05, 2004 2:30 pm

PSKill

Run Program>pskill winword
Run Program>pskill DataKeeper.exe

marois999
Newbie
Posts: 2
Joined: Mon Jul 05, 2004 4:07 am

Thanks - It works!

Post by marois999 » Mon Jul 05, 2004 2:51 pm

Thanks, Armstrong.

I used the following line because I'm running Win XP Pro:

Run Program>C:\Windows\System32\Taskkill.exe /F /IM DATAKEEPER.exe

It works like a charm!

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Mon Jul 05, 2004 3:28 pm

Kill works good. Another very useful utility to do that is PrcView.
PrcView is freeware and does more than just kill.

PrcView is a process viewer utility that displays detailed information about processes running under Windows. For each process it displays memory, threads and module usage. For each DLL it shows full path and version information. PrcView comes with a command line version that allows you to write scripts to check if a process is running, kill it, etc.

You could also use PrcView to see if that server process was running or had stopped vs. checking how long since the log file had been modified.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

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

Post by armsys » Mon Jul 05, 2004 3:59 pm

Hi marois999,

You're welcome. Glad to know it works to your satisfaction.

Hi Bob,

Personally, I prefer Sysinternals' Process Explorer. It's free :P . It's updated frequently and includes a 64-bit version. You'll love it.

Happy scripting.

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Mon Jul 05, 2004 6:14 pm

When the only tool you have is a hammer, then every problem looks like a nail.

Thanks armsys. I already have some of the SysInternals packages. Especially like RegMon and FileMon when installing new programs.

One of the reasons I mention PrcView is the command line ability, plus runs on Win9X as well as NT systems. Lots of tools out there, we will all have our own favorites. At least we get to share our experiences here.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

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