mirror of
https://github.com/ManuelGil/Script-Reset-Windows-Update-Tool.git
synced 2026-08-18 15:33:35 +08:00
Update Regedit Backup
This commit is contained in:
@@ -56,6 +56,12 @@ This page will help you get started with Reset Windows Update Tool (Script).
|
|||||||
|
|
||||||
* This file don't require installation
|
* This file don't require installation
|
||||||
|
|
||||||
|
<a name="support"></a>
|
||||||
|
### Support
|
||||||
|
* Issues: [https://github.com/ManuelGil/Reset-Windows-Update-Tool/issues](https://github.com/ManuelGil/Reset-Windows-Update-Tool/issues)
|
||||||
|
* Wiki: [https://github.com/ManuelGil/Reset-Windows-Update-Tool/wiki](https://github.com/ManuelGil/Reset-Windows-Update-Tool/wiki)
|
||||||
|
* Docs: [http://docs.wureset.com](http://docs.wureset.com)
|
||||||
|
|
||||||
<a name="Donate"></a>
|
<a name="Donate"></a>
|
||||||
## :gift: Donate!
|
## :gift: Donate!
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
:mode
|
:mode
|
||||||
echo off
|
echo off
|
||||||
title Reset Windows Update Tool.
|
title Reset Windows Update Tool.
|
||||||
mode con cols=78 lines=32
|
mode con cols=80 lines=32
|
||||||
color 17
|
color 17
|
||||||
cls
|
cls
|
||||||
|
|
||||||
@@ -738,10 +738,12 @@ goto :eof
|
|||||||
set now=%%a%%b%%c%%d%time:~0,2%%time:~3,2%
|
set now=%%a%%b%%c%%d%time:~0,2%%time:~3,2%
|
||||||
)
|
)
|
||||||
|
|
||||||
:: ----- Create a backup of the Registry -----
|
mkdir "%USERPROFILE%\Desktop\Backup\%now%\"
|
||||||
call :print Making a backup of the Registry in: %USERPROFILE%\Desktop\Backup%now%.reg
|
|
||||||
|
|
||||||
if exist "%USERPROFILE%\Desktop\Backup%now%.reg" (
|
:: ----- Create a backup of the Registry -----
|
||||||
|
call :print Making a backup of the Registry in: %USERPROFILE%\Desktop\Backup\%now%\
|
||||||
|
|
||||||
|
if exist "%USERPROFILE%\Desktop\Backup\%now%\HKLM.reg" (
|
||||||
echo.An unexpected error has occurred.
|
echo.An unexpected error has occurred.
|
||||||
echo.
|
echo.
|
||||||
echo. Changes were not carried out in the registry.
|
echo. Changes were not carried out in the registry.
|
||||||
@@ -751,13 +753,17 @@ goto :eof
|
|||||||
pause>nul
|
pause>nul
|
||||||
goto :eof
|
goto :eof
|
||||||
) else (
|
) else (
|
||||||
regedit /e "%USERPROFILE%\Desktop\Backup%now%.reg"
|
reg Export HKCR "%USERPROFILE%\Desktop\Backup\%now%\HKCR.reg"
|
||||||
|
reg Export HKCU "%USERPROFILE%\Desktop\Backup\%now%\HKCU.reg"
|
||||||
|
reg Export HKLM "%USERPROFILE%\Desktop\Backup\%now%\HKLM.reg"
|
||||||
|
reg Export HKU "%USERPROFILE%\Desktop\Backup\%now%\HKU.reg"
|
||||||
|
reg Export HKCC "%USERPROFILE%\Desktop\Backup\%now%\HKCC.reg"
|
||||||
)
|
)
|
||||||
|
|
||||||
:: ----- Checking backup -----
|
:: ----- Checking backup -----
|
||||||
call :print Checking the backup.
|
call :print Checking the backup.
|
||||||
|
|
||||||
if not exist "%USERPROFILE%\Desktop\Backup%now%.reg" (
|
if not exist "%USERPROFILE%\Desktop\Backup\%now%\HKLM.reg" (
|
||||||
echo.An unexpected error has occurred.
|
echo.An unexpected error has occurred.
|
||||||
echo.
|
echo.
|
||||||
echo. Something went wrong.
|
echo. Something went wrong.
|
||||||
|
|||||||
Reference in New Issue
Block a user