In Reply to: Re: Only run second "?.bat" (which calls foobar.bat) posted by texastea006@yahoo.com on May 15, 2007 at 11:17:05:
This also restores windows priorities & affinities to original settings.Here's the revised commands:
*** 1. FOOBAR.BAT (C:\) ***
@echo off
rem #1 Start Foobar2000 in RealTime
start /wait /REALTIME c:\progra~1\foobar2000\foobar2000.exerem #2 Resume Windows, Restore affinities & priorities, and Start UI
start /b /wait c:\process.exe -r winlogon.exe
start /b /wait c:\process.exe -r smss.exe
start /b /wait c:\process.exe -p smss.exe AboveNormal
start /b /wait c:\process.exe -p winlogon.exe High
start /b /wait c:\process.exe -p system Normal
start /b /wait c:\process.exe -p csrss.exe High
start /b /wait c:\process.exe -p services.exe Normal
start /b /wait c:\process.exe -p svchost.exe Normal
start /b /wait c:\process.exe -p lsass.exe Normal
rem start /b /wait c:\process.exe -p [SOUNDCARD].exe Normal
start /b /wait c:\process.exe -a smss.exe 11
start /b /wait c:\process.exe -a winlogon.exe 11
start /b /wait c:\process.exe -a system 11
start /b /wait c:\process.exe -a csrss.exe 11
start /b /wait c:\process.exe -a services.exe 11
start /b /wait c:\process.exe -a svchost.exe 11
start /b /wait c:\process.exe -a lsass.exe 11
rem start /b /wait c:\process.exe -a [SOUNDCARD].exe 11
start /b /wait c:\process.exe -a cmd.exe 11
start /b c:\windows\explorer.exe
exit
*** 2. ?.BAT ***
@echo off
rem #1 Kill UI
start /b /wait c:\process.exe -k explorer.exerem #2 Suspend Windows
start /b /wait c:\process.exe -p smss.exe Low
start /b /wait c:\process.exe -p winlogon.exe Low
start /b /wait c:\process.exe -a smss.exe 01
start /b /wait c:\process.exe -a winlogon.exe 01
start /b /wait c:\process.exe -s smss.exe
start /b /wait c:\process.exe -s winlogon.exerem #3 Start Foobar2000
start /b /wait c:\process.exe -a cmd.exe 01
start /LOW c:\foobar.batrem #4 Adjust priorities, eg. High, RealTime, BelowNormal, Low;
rem # and Set Affinities
start /b /wait c:\process.exe -p system RealTime
start /b /wait c:\process.exe -p csrss.exe Low
start /b /wait c:\process.exe -p services.exe Low
start /b /wait c:\process.exe -p svchost.exe Low
start /b /wait c:\process.exe -p lsass.exe Low
rem start /b /wait c:\process.exe -p [SOUNDCARD].exe Low
start /b /wait c:\process.exe -a system 01
start /b /wait c:\process.exe -a csrss.exe 01
start /b /wait c:\process.exe -a services.exe 01
start /b /wait c:\process.exe -a svchost.exe 01
start /b /wait c:\process.exe -a lsass.exe 01
rem start /b /wait c:\process.exe -a [SOUNDCARD].exe 01
start /b /wait c:\process.exe -a foobar2000.exe 10rem #5 Start Task Manager or Process Explorer
start /b C:\WINDOWS\system32\taskmgr.exe
start /b /wait c:\process.exe -p taskmgr.exe Normal
rem start /b c:\procexp.exe /p:n
exit
This post is made possible by the generous support of people like you and our sponsors:
Follow Ups
- Winlogon and smss.exe set to low and one processor - cics 10:13:04 05/17/07 (7)
- Try this change - cics 10:24:37 05/17/07 (6)
- Re: Try this change - texastea006@yahoo.com 06:19:11 08/21/07 (0)
- Re: Also change 'System' process priority to low - cics 07:18:13 06/29/07 (0)
- Can you clarify please. - edward 15:05:05 05/17/07 (3)
- Re: Can you clarify please. - cics 11:35:37 05/18/07 (2)
- Re: Can you clarify please. - edward 20:50:23 05/18/07 (1)
- Re: Can you clarify please. - cics 22:35:40 05/19/07 (0)