Link to home
Start Free TrialLog in
Avatar of huskeraider
huskeraiderFlag for United States of America

asked on

windows task manager script

I'm trying to figure out the best way to script for a specific process in the windows task manager (devenv.exe*), taskkill the process(s), and email the user name of each process killed. I would appreciate a push in the write direction. I'm not sure whether to split this in to 3 different batch files.
1. tasklist specific tasks to text file
2. taskkill from the list
3. email from the list

As i said, I would really appreciate some direction on this. I'm not really sure of the best way to proceed on this.

thank you.
Avatar of Biniek
Biniek
Flag of Poland image

Avatar of huskeraider

ASKER

right. I have the Sysinternals Utilities installed. Maybe PsKill and PsList offer more options than Taskkill and Tasklist. I'll do some comparing and see which is better.
ASKER CERTIFIED SOLUTION
Avatar of huskeraider
huskeraider
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I found the answer before i received any assistance and posted the result here in case someone else could use it.