Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
October 15, 2002
By default, Windows XP remembers your settings for 400 folders.
I have scripted NumFolders.bat to change that limit.
The syntax for using NumFolders.bat is:
NumFolders Number
where Number is the number of folders to remember settings for, in the range of 0 - 99999.
NOTE: NumFolders.bat calls Dec2Hex.bat.
NumFolders.bat contains:
@echo offsetlocalif {%1}=={} goto syntaxset /a num=%1if %num% LSS 0 goto syntaxif %num% GTR 99999 goto syntaxcall Dec2Hex %num% hex charsif not defined chars goto syntaxif %chars% EQU 0 goto syntaxset hexzero=00000000set /a numzero=8 - %chars%call set dwhex=%%hexzero:~0,%numzero%%%set dwhex=%dwhex%%hex%@echo REGEDIT4>"%temp%NumFolders.reg"@echo.>>"%temp%NumFolders.reg"@echo [HKEY_CURRENT_USERSoftwareMicrosoftWindowsShell]>>"%temp%NumFolders.reg"@echo "BagMRU Size"=dword:%dwhex%>>"%temp%NumFolders.reg"@echo.>>"%temp%NumFolders.reg"@echo [HKEY_CURRENT_USERSoftwareMicrosoftWindowsShellNoRoam]>>"%temp%NumFolders.reg"@echo "BagMRU Size"=dword:%dwhex%>>"%temp%NumFolders.reg"@echo.>>"%temp%NumFolders.reg"regedit /s "%temp%NumFolders.reg"del /q "%temp%NumFolders.reg"endlocalgoto :EOF:syntax@echo Syntax: NumFolders Numberendlocalgoto :EOF
You May Also Like