Solved

Solution for a vbs script how start a external program with lowest priority

Posted on 2009-03-31
1
374 Views
Last Modified: 2012-05-06
I look for a vbs script how start a external program with low or lowest  priority.
0
Comment
Question by:ROMCHCH
1 Comment
 
LVL 38

Accepted Solution

by:
Shift-3 earned 250 total points
Comment Utility
Here's the easy way.  

Paste the script below into a text file with a .vbs extension.  Customize the value of the strProgram variable on line 1 with the location of the program.  Running the script will launch the program with Low priority.  To launch it with the BelowNormal priority instead, replace /LOW with /BELOWNORMAL in line 2.

To change a running program's priority, see this article.


strProgram = "C:\Program Files\MyProgram\MyProgram.exe"

strCommand = "cmd /c start """" /LOW """ & strProgram & """"
 

Set objShell = CreateObject("WScript.Shell")

objShell.Exec(strCommand)

Open in new window

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

Script to copy or move mouse-selected collection of files plus targets referenced by shortcuts (.lnk) The purpose of this article is to help illuminate the real challenges and options available (where they may exist) for utilizing simple scriptin…
Hello again, all.  For those of you that have been following along, you'll know that this is my third article on this topic (though it is not Part III).  This article is sort of remedial, and probably the topic with which I should have started the s…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

771 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

10 Experts available now in Live!

Get 1:1 Help Now