Solved

If Processes are running in the task Manager

Posted on 2014-01-02
3
373 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

In this post we will learn different types of Android Layout and some basics of an Android App.
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

751 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