Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2009-03-31
1
Medium Priority
?
443 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 750 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

When it comes to writing scripts for a Client/Server computing environment it is essential to consider some way of enabling the authentication functionality within a script. This sort of consideration mainly comes into the picture when we are dealin…
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

722 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