Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Aug 29 '09 at 4:25

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

1  
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 connect.microsoft.com if you have identified a reproducible performance problem. –  280Z28 Aug 31 '09 at 17:14
add comment

3 Answers

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
add comment

Create a bat file. Type this in the file:

c:
cd\
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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.