测试环境:Windows 10 X64 Skyrim Special Edition
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
@echo off COLOR 2F mode con cols=38 lines=13 title ZhangZsky Ver:0.8 IF EXIST "TESV.exe" IF EXIST "skse_loader.exe" (set ske=skse_loader&set skn=Skyrim&set ski=TESV) else (set ske=TESV&set skn=Skyrim&set ski=TESV) IF EXIST "SkyrimSE.exe" IF EXIST "skse64_loader.exe" (set ske=skse64_loader&set skn=Skyrim Special Edition&set ski=SkyrimSE) else (set ske=SkyrimSE&set skn=Skyrim Special Edition&set ski=SkyrimSE) if "%ske%"=="" if "%skn%"=="" echo. & echo 位置存放不正确 !!!! & echo. & echo 当前 路径 未发现游戏 ! & echo 工具需存放游戏根目录 ! & pause>nul & exit for /f "tokens=2,*" %%i in ('reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Desktop"') do (set Desk=%%j) for /f "tokens=2,*" %%i in ('reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Personal"') do (set Doc=%%j) ver|find /i "5.">nul&& set Skyrimdata=%userprofile%\Local Settings\Application Data\%skn%&& set V=5.X|| set Skyrimdata=%userprofile%\AppData\Local\%skn%&& set V=6.X ::mode con cols=64 lines=16 & echo 游戏名称:%skn% & echo 应用名称:%ske% & echo 应用图标:%ski% & echo 数据:"%Skyrimdata%" & echo 桌面:"%desk%" & echo 文档:"%doc%" & echo 所在:"%~dp0" & echo 系统:"%V%" & pause & mode con cols=38 lines=13 :菜单 echo. echo 1.通用 注册表自动修复 echo. echo 2.桌面 添加新快捷方式 echo. echo 3.恢复 存档,排序,设置 echo. echo 4.备份 存档,排序,设置 echo. echo 0.回帖 吐槽下所遇问题 echo. & echo. & SET Choice= SET /P Choice=输入数字,然后按回车(例: 5 ) IF NOT '%Choice%'=='' SET Choice=%Choice:~0,1% IF /I '%Choice%'=='1' GOTO 修复 IF /I '%Choice%'=='2' GOTO 快捷 IF /I '%Choice%'=='3' GOTO 恢复 IF /I '%Choice%'=='4' GOTO 备份 IF /I '%Choice%'=='0' GOTO 回帖 IF /I '%Choice%'=='5' call :修复 & call :快捷 & call :恢复 & exit IF /I '%Choice%'=='Q' EXIT if not '%Choice%'=='1/2/3/4/5/0/Q' cls & echo. & echo 输入有误,请重新输入! & echo. & echo. & echo. & echo 任意键返回菜单 & pause>nul & goto 菜单 :修复 SET Skyrim=%CD% SET Skyrim=%Skyrim:\=\\% > ".\Skyrim.reg" ECHO Windows Registry Editor Version 5.00 >>".\Skyrim.reg" ECHO. >>".\Skyrim.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Bethesda Softworks\%skn%] >>".\Skyrim.reg" ECHO "Installed Path"="%Skyrim%\\" >>".\Skyrim.reg" ECHO. >>".\Skyrim.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Bethesda Softworks\%skn%] >>".\Skyrim.reg" ECHO "Installed Path"="%Skyrim%\\" cls regedit /s ".\Skyrim.reg" "%windir%\regedit.exe" /s ".\Skyrim.reg" "%windir%\SysWoW64\regedit.exe" /s ".\Skyrim.reg" del /F /Q ".\Skyrim.reg" cls & echo. & echo. & echo 修复完成 & pause & goto :eof :快捷 set fileName=%~dp0%ske%.exe set fileicon=%~dp0%ski%.exe set shortCutPath=%Desk%\%skn%.lnk echo Dim WshShell,Shortcut>tmp.vbs echo Dim path,fso>>tmp.vbs echo path="%fileName%">>tmp.vbs echo Set fso=CreateObject("Scripting.FileSystemObject")>>tmp.vbs echo Set WshShell=WScript.CreateObject("WScript.Shell")>>tmp.vbs echo Set Shortcut=WshShell.CreateShortCut("%shortCutPath%")>>tmp.vbs echo Shortcut.WorkingDirectory="%~dp0">>tmp.vbs echo Shortcut.IconLocation="%fileicon%">>tmp.vbs echo Shortcut.TargetPath=path>>tmp.vbs echo Shortcut.Save>>tmp.vbs "%SystemRoot%\System32\WScript.exe" tmp.vbs del tmp.vbs /s /q cls & echo. & echo. & echo 添加完成 & pause & goto :eof :恢复 xcopy /s /c /i /y "UserFile\appdata" "%doc%\My Games\%skn%" xcopy /s /c /i /y "UserFile\plugins" "%Skyrimdata%" cls & echo. & echo. & echo 恢复完成 & pause & goto :eof :备份 xcopy /e /c /h /i /y "%Skyrimdata%" "UserFile\plugins" xcopy /e /c /h /i /y "%doc%\My Games\%skn%" "UserFile\appdata" cls & echo. & echo. & echo 备份完成 & pause & goto :eof :回帖 start http://bbs.3dmgame.com/thread-4543117-1-1.html goto 菜单 |
发表回复