Solved

If Processes are running in the task Manager

Posted on 2014-01-02
3
372 Views
Last Modified: 2014-01-14
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
0
Comment
Question by:Vicki05
3 Comments
 
LVL 19

Accepted Solution

by:
Thommy earned 150 total points
ID: 39751234
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
 
LVL 3

Assisted Solution

by:Detlef001
Detlef001 earned 150 total points
ID: 39751301
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
 

Author Comment

by:Vicki05
ID: 39779614
Thanks for your help
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
A short article about problems I had with the new location API and permissions in Marshmallow
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question