CLS @ECHO THIS BATCH FILE WILL EXPORT THE REGISTRY KEYS AFFECTED, @ECHO THEN APPLY THE REGISTRY PATCHES, @ECHO YOU MAY NEED TO MERGE THE UNDO_FILENAME FROM MY SITE @ECHO TO UNDO THE CHANGES MADE @SET /P userchoice1=Select "y" to continue... @IF "%userchoice1%"=="Y" GOTO AGREE1 @IF "%userchoice1%"=="y" GOTO AGREE1 CLS @ECHO CANCELLED @PAUSE EXIT :AGREE1 IF EXIST "%userprofile%\My Documents\RegBackup\EXPORT_HideRecentFromOffice.reg" GOTO AGREE2 GOTO CONT :AGREE2 CLS @ECHO THE EXPORTED FILE ALREADY EXISTS @ECHO DO YOU WANT TO OVERWRITE @SET /P userchoice2=Select "y" to continue, "n" to continue and not create an export file, or nothing to cancel... @IF "%userchoice2%"=="Y" GOTO CONT @IF "%userchoice2%"=="y" GOTO CONT @IF "%userchoice2%"=="N" GOTO CONT3 @IF "%userchoice2%"=="n" GOTO CONT3 CLS @ECHO CANCELLED @PAUSE EXIT :CONT @echo off IF EXIST "%userprofile%\My Documents\RegBackup" GOTO CONT2 mkdir "%userprofile%\My Documents\RegBackup" GOTO CONT2 :CONT2 cd %userprofile%\My Documents\RegBackup regedit /e EXPORT_HideRecentFromOffice.reg "HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Common\Open Find\Places\StandardPlaces" GOTO CONT3 :CONT3 cd %userprofile%\desktop echo > HideRecentFromOffice.reg Windows Registry Editor Version 5.00 echo >> HideRecentFromOffice.reg [HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Common\Open Find\Places\StandardPlaces\Recent] echo >> HideRecentFromOffice.reg "Show"=dword:00000000 echo >> HideRecentFromOffice.reg [HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Common\Open Find\Places\StandardPlaces\Favorites] echo >> HideRecentFromOffice.reg "Show"=dword:00000000 echo >> HideRecentFromOffice.reg [HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Common\Open Find\Places\StandardPlaces\Publishing] echo >> HideRecentFromOffice.reg "Show"=dword:00000000 regedit HideRecentFromOffice.reg del HideRecentFromOffice.reg CLS @ECHO SUCCESS @PAUSE EXIT