CLS @ECHO THIS BATCH FILE WILL EXPORT THE REGISTRY KEYS AFFECTED, @ECHO THEN APPLY THE REGISTRY PATCHES @ECHO YOU CAN MERGE THE EXPORT_FILENAME TO UNDO THE CHANGES @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_FasterPageLoading.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_FasterPageLoading.reg HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider GOTO CONT3 :CONT3 cd %userprofile%\desktop echo > FasterPageLoading.reg Windows Registry Editor Version 5.00 echo >> FasterPageLoading.reg [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider] echo >> FasterPageLoading.reg "Class"=dword:00000008 echo >> FasterPageLoading.reg "DnsPriority"=dword:00000003 echo >> FasterPageLoading.reg "HostsPriority"=dword:00000002 echo >> FasterPageLoading.reg "LocalPriority"=dword:00000001 echo >> FasterPageLoading.reg "NetbtPriority"=dword:00000004 regedit FasterPageLoading.reg del FasterPageLoading.reg CLS @ECHO SUCCESS @PAUSE EXIT