diff options
author | dartraiden <wowemuh@gmail.com> | 2020-11-18 22:03:07 +0300 |
---|---|---|
committer | dartraiden <wowemuh@gmail.com> | 2020-11-18 22:03:07 +0300 |
commit | fde581fa68cc9f7bac365c3e8b19244d053fbec6 (patch) | |
tree | a455a12eb622f6fcbd79b55ad90b5615cddcea94 /tools/build_scripts | |
parent | c6836cfe5375098f439b9983697aae68e2b8347d (diff) |
Switch fixme.bat to a better way to recover
Diffstat (limited to 'tools/build_scripts')
-rw-r--r-- | tools/build_scripts/fixme.cmd | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/tools/build_scripts/fixme.cmd b/tools/build_scripts/fixme.cmd index f9bf0a8fa9..490a43c619 100644 --- a/tools/build_scripts/fixme.cmd +++ b/tools/build_scripts/fixme.cmd @@ -31,28 +31,12 @@ if "%1" == "" ( set ProfileName=%1 ) -echo Backing up %ProfileName%... - set FullProfileName=%ProfileDir%\%ProfileName%\%ProfileName%.dat -set TmpFileName=%TEMP%\%ProfileName%.tmp - -del "%TmpFileName%" > nul - -mdbx_dump.exe -n -a -f "%TmpFileName%" "%FullProfileName%" -if not exist "%TmpFileName%" ( - echo Backup failed, exiting - goto :eof -) - -mdbx_load.exe -n -a -f "%TmpFileName%" "%FullProfileName%.tmp" -if errorlevel 1 ( - echo Restore failed, exiting - goto :eof -) del "%FullProfileName%.bak" > nul -move "%FullProfileName%" "%FullProfileName%.bak" -move "%FullProfileName%.tmp" "%FullProfileName%" +copy "%FullProfileName%" "%FullProfileName%.bak" + +mdbx_chk.exe -i -w -v -t -1 "%FullProfileName%" echo Operation succeeded goto :eof |