Solved

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

Posted on 2009-03-31
1
427 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Server 2012 management. 5 57
excel VBA - clear duplicates not working 11 52
Need VBA code to change date format of Column A 5 40
A Table within a User Form 24 78
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…
Well hello again!  Glad to see you've made it this far without giving up.  In this, the fourth installment of my popular series, I'm going to cover functions and subroutines, what they are, and why they are useful.  Just in case you stumbled onto th…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

739 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