Solved

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

Posted on 2009-03-31
1
438 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
[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
1 Comment
 
LVL 38

Accepted Solution

by:
Shift-3 earned 250 total points
ID: 24032894
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

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses

636 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