Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

If Processes are running in the task Manager

Posted on 2014-01-02
3
Medium Priority
?
377 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 600 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 600 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
When you discover the power of the R programming language, you are going to wonder how you ever lived without it! Learn why the language merits a place in your programming arsenal.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Progress

877 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