Solved

If Processes are running in the task Manager

Posted on 2014-01-02
3
369 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
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 …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now