2018.02.09 计划
- 增加可选备份位置及更改功能
- 增加可选非覆盖式备份功能
- 增加可选定时备份功能
1 ::黑魂3存档位置%SystemDrive%\Users\Eason\AppData\Roaming\DarkSoulsIII 2 @echo off 3 %1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit 4 cd /d "%~dp0" 5 :main 6 cls 7 echo. 请选择所需功能: 8 echo. 9 echo. 1.备份黑魂3存档 10 echo. 11 echo. 2.还原黑魂3存档 12 echo. 13 14 if exist "%SystemRoot%\System32\choice.exe" goto Win7Choice 15 16 set /p choice=请输入数字并按回车键确认: 17 18 echo. 19 if %choice%==1 goto backup saves 20 if %choice%==2 goto return saves 21 cls 22 "set choice=" 23 echo 您输入有误,请重新选择。 24 ping 127.0.1 -n "2">nul 25 goto main 26 27 :Win7Choice 28 choice /c 12 /n /m "请输入相应数字:" 29 if errorlevel 2 goto return saves 30 if errorlevel 1 goto backup saves 31 cls 32 goto main 33 34 :backup saves 35 cls 36 copy /y "%SystemDrive%\Users\Eason\AppData\Roaming\DarkSoulsIII" "D:\DarkSouls3Backup" 37 echo.----------------------------------------------------------- 38 echo. 39 echo.已成功将黑魂3存档备份 40 echo. 41 goto end 42 43 :return saves 44 cls 45 copy /y "D:\DarkSouls3Backup" "%SystemDrive%\Users\Eason\AppData\Roaming\DarkSoulsIII" 46 echo.----------------------------------------------------------- 47 echo. 48 echo.已成功将黑魂3存档还原 49 echo. 50 goto end 51 52 :end 53 echo 请按任意键退出。 54 @Pause>nul