Questions

Answer for:

Start Program With Realtime Priority By Default

Message 4 of 6

View entire thread
+
0 Votes
Jacky Howe

If you want a particular Windows application to always start with a base priority other than normal, you can use the Start command in a batch file to always launch that application at a higher priority. For example, if you wanted to run an application named PriorityOne at a high priority, you could create a batch file using the start command:
<br><br>
start /high c:\priorityone.exe
<br>
This command could be used to start the application at a high priority.
<br>
To run the command to have the application start in RealTime priority it would be like this.
<br><br>
start /realtime c:\priorityone.exe
<br>
http://www.informit.com/articles/article.aspx?p=465310&seqNum=1
<br><br>
The batch file could be added to either of these Registry paths so that it is started when a User logs on.
<br>
? HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
<br>
? HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
<br><br>
PsExec v1.94<br>
By Mark Russinovich<br>
Published: January 4, 2008<br>

http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
<br><br>
And the batch file and reg file can be copied to the workstations where it can be run to create the timer.cmd and add the Registry entry. add2reg.cmd
<br><br>
=========================
<br>
Windows Registry Editor Version 5.00
<br><br>
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]<br>
"Realtime"="C:\timer.cmd"<br>
=========================
<br><br>
=========================
<br>
C: regedit /s def.reg<br>
goto tim<br>

:tim<br>
set timer= C:\timer.cmd<br>
echo start /realtime c:\priorityone.exe >%timer%<br>
call C:\timer.cmd<br>
=========================
<br><br>
<i>Keep us informed as to your progress if you require further assistance.</i>
<br><br>
<i>If you think that any of the posts that have been made by all TR Members, have solved or contributed to solving the problem, please Mark them as <b>Helpful</b> so that others may benefit from the outcome.
</i>