Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I created a shortcut pointing to cmd /c "start /high c:\windows\notepad.exe" so it starts off the notepad process as a high priority process but this doesn't seem to work for the path

"C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"

What's going on here?

share|improve this question

migrated from Aug 29 '09 at 4:25

This question came from our site for professional and enthusiast programmers.

Do not do this. Either 1) your machine will slow to a halt if you get runaway processing in VS (which does happen), 2) Visual Studio will manage its own thread priority. Instead you should lower the priority of the task(s), if any, that are interfering with it, or report the issue at if you have identified a reproducible performance problem. – Sam Harwell Aug 31 '09 at 17:14

There is no need to quote the entire command in a string like you are doing, also, start has a "bug", if the path has quotes, you must use a pair of empty quotes first to set the "title".

So, your command should look like:

cmd /c start "" /high "%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"
share|improve this answer

A process can control its own priority, so my guess is that VS will revert back to the normal priority even if you started it at a higher priority.

share|improve this answer

Create a bat file. Type this in the file:

cd "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE"
start /high devenv.exe

run it. This will open devenv with high priority. (Elevate the bat file in Vista)

share|improve this answer
Man, sometimes its right in front of your face and you can't see it :) – Binder Aug 27 '09 at 16:57
Something like this should be a one liner, this is overkill – Anders Aug 31 '09 at 16:02

You must log in to answer this question.