JSI Tip 5475. How do I change the Windows XP My Computer view to a folder view?

Jerold Schulman

June 25, 2002

1 Min Read
ITPro Today logo in a gray background | ITPro Today

If you want to change the Windows XP My Computer view to a folder view, Copy / Paste the following to a MyComputerFolderView.bat file and double-click or run it:

NOTE The MyComputerFolderView.bat file creates a c:RestoreMyComputerView.reg file, which you can Merge with your registry to restore the previous My Computer view.

@echo offsetlocalif not exist c:RestoreMyComputerView.reg goto begin@echo A c:RestoreMyComputerView.reg file already exists.pauseexit:beginregedit /a "%TEMP%RestoreMyComputerView.reg" "HKEY_CLASSES_ROOTCLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}shell"set /a cnt=0for /f "Tokens=*" %%r in ('type "%TEMP%RestoreMyComputerView.reg"') do set line=%%r&call :parse@echo REGEDIT4>"%TEMP%MyComputerFolderView.reg"@echo [HKEY_CLASSES_ROOTCLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}shell]>>"%TEMP%MyComputerFolderView.reg"@echo @="explore">>"%TEMP%MyComputerFolderView.reg"@echo [HKEY_CLASSES_ROOTCLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}shellexplore]>>"%TEMP%MyComputerFolderView.reg"@echo "BrowserFlags"=dword:00000022>>"%TEMP%MyComputerFolderView.reg"@echo "ExplorerFlags"=dword:00000021>>"%TEMP%MyComputerFolderView.reg"@echo [HKEY_CLASSES_ROOTCLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}shellexplorecommand]>>"%TEMP%MyComputerFolderView.reg"@echo  @=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,45,78,70,6c,6f,72,65,72,2e,65,>>"%TEMP%MyComputerFolderView.reg"@echo    78,65,20,2f,65,2c,2f,69,64,6c,69,73,74,2c,25,49,2c,25,4c,00>>"%TEMP%MyComputerFolderView.reg"@echo [HKEY_CLASSES_ROOTCLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}shellexploreddeexec]>>"%TEMP%MyComputerFolderView.reg"@echo @="[ExploreFolder("%%l", %%I, %%S)]">>"%TEMP%MyComputerFolderView.reg"@echo "NoActivateHandler"="">>"%TEMP%MyComputerFolderView.reg"@echo [HKEY_CLASSES_ROOTCLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}shellexploreddeexecapplication]>>"%TEMP%MyComputerFolderView.reg"@echo @="Folders">>"%TEMP%MyComputerFolderView.reg"@echo [HKEY_CLASSES_ROOTCLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}shellexploreddeexecifexec]>>"%TEMP%MyComputerFolderView.reg"@echo @="[]">>"%TEMP%MyComputerFolderView.reg"@echo [HKEY_CLASSES_ROOTCLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}shellexploreddeexectopic]>>"%TEMP%MyComputerFolderView.reg"@echo @="AppProperties">>"%TEMP%MyComputerFolderView.reg"@echo.>>"%TEMP%MyComputerFolderView.reg"regedit /s "%TEMP%MyComputerFolderView.reg"endlocalgoto :EOF:parseset /a cnt=%cnt% + 1if not %cnt% EQU 1 goto parse1@echo REGEDIT4>c:RestoreMyComputerView.reg@echo [-HKEY_CLASSES_ROOTCLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}shell]>>c:RestoreMyComputerView.reggoto :EOF:parse1@echo %line%>>c:RestoreMyComputerView.reg



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.

You May Also Like