If Processes are running in the task Manager

Hi All,

I need to run a vbs that checks if process 1 is running then it gives a popup message program is running in the background, do you want to cancel it with a VBYESNO.

If answered NO it kills another process in the task manager. If answered Yes it continues with the script.

If the process 1 is not running, then it skips the VBYESNO part and continues with the script

Please advice, I am a bit lost.

Thanks,
Vicki
Vicki05Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
ThommyConnect With a Mentor Commented:
This should help you finding and killing a process by vbs...
How can I use VBScript to stop a process if it's running?
0
 
Detlef001Connect With a Mentor Commented:
There are several ways to achieve this.

Refer these links for the same.

http://www.computerperformance.co.uk/vbscript/wmi_process_stop.htm

http://www.tek-tips.com/viewthread.cfm?qid=555885

Thanks.
0
 
Vicki05Author Commented:
Thanks for your help
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.