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

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 off
setlocal
if not exist c:\RestoreMyComputerView.reg goto begin
@echo A c:\RestoreMyComputerView.reg file already exists.
pause
exit
:begin
regedit /a "%TEMP%\RestoreMyComputerView.reg" "HKEY_CLASSES_ROOT\CLSID\\{20D04FE0-3AEA-1069-A2D8-08002B30309D\}\shell"
set /a cnt=0
for /f "Tokens=*" %%r in ('type "%TEMP%\RestoreMyComputerView.reg"') do set line=%%r&call :parse
@echo REGEDIT4>"%TEMP%\MyComputerFolderView.reg"
@echo \[HKEY_CLASSES_ROOT\CLSID\\{20D04FE0-3AEA-1069-A2D8-08002B30309D\}\shell\]>>"%TEMP%\MyComputerFolderView.reg"
@echo @="explore">>"%TEMP%\MyComputerFolderView.reg"
@echo \[HKEY_CLASSES_ROOT\CLSID\\{20D04FE0-3AEA-1069-A2D8-08002B30309D\}\shell\explore\]>>"%TEMP%\MyComputerFolderView.reg"
@echo "BrowserFlags"=dword:00000022>>"%TEMP%\MyComputerFolderView.reg"
@echo "ExplorerFlags"=dword:00000021>>"%TEMP%\MyComputerFolderView.reg"
@echo \[HKEY_CLASSES_ROOT\CLSID\\{20D04FE0-3AEA-1069-A2D8-08002B30309D\}\shell\explore\command\]>>"%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_ROOT\CLSID\\{20D04FE0-3AEA-1069-A2D8-08002B30309D\}\shell\explore\ddeexec\]>>"%TEMP%\MyComputerFolderView.reg"
@echo @="\[ExploreFolder(\"%%l\", %%I, %%S)\]">>"%TEMP%\MyComputerFolderView.reg"
@echo "NoActivateHandler"="">>"%TEMP%\MyComputerFolderView.reg"
@echo \[HKEY_CLASSES_ROOT\CLSID\\{20D04FE0-3AEA-1069-A2D8-08002B30309D\}\shell\explore\ddeexec\application\]>>"%TEMP%\MyComputerFolderView.reg"
@echo @="Folders">>"%TEMP%\MyComputerFolderView.reg"
@echo \[HKEY_CLASSES_ROOT\CLSID\\{20D04FE0-3AEA-1069-A2D8-08002B30309D\}\shell\explore\ddeexec\ifexec\]>>"%TEMP%\MyComputerFolderView.reg"
@echo @="\[\]">>"%TEMP%\MyComputerFolderView.reg"
@echo \[HKEY_CLASSES_ROOT\CLSID\\{20D04FE0-3AEA-1069-A2D8-08002B30309D\}\shell\explore\ddeexec\topic\]>>"%TEMP%\MyComputerFolderView.reg"
@echo @="AppProperties">>"%TEMP%\MyComputerFolderView.reg"
@echo.>>"%TEMP%\MyComputerFolderView.reg"
regedit /s "%TEMP%\MyComputerFolderView.reg"
endlocal
goto :EOF
:parse
set /a cnt=%cnt% + 1
if not %cnt% EQU 1 goto parse1
@echo REGEDIT4>c:\RestoreMyComputerView.reg
@echo \[-HKEY_CLASSES_ROOT\CLSID\\{20D04FE0-3AEA-1069-A2D8-08002B30309D\}\shell\]>>c:\RestoreMyComputerView.reg
goto :EOF
:parse1
@echo %line%>>c:\RestoreMyComputerView.reg


Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish