@echo off set v=%~dp0 set v=%v:\=\\% if exist %temp%\dira.reg del /f /q %temp%\dira.reg echo Windows Registry Editor Version 5.00>>%temp%\dira.reg echo [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\silky's\GakuenSaiminReidoex]>>%temp%\dira.reg echo "InstPath"="%v%">>%temp%\dira.reg echo "InstExec"="%v%\\AI6WIN.exe">>%temp%\dira.reg regedit /s %temp%\dira.reg del /f /q %temp%\dira.reg
试试看,不确定能不能行
⋯
@echo off set v=%~dp0 set v=%v:\=\\% if exist %temp%\dira.reg del /f /q %temp%\dira.reg echo Windows Registry Editor Version 5.00>>%temp%\dira.reg echo [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\silky's\GakuenSaiminReidoex]>>%temp%\dira.reg echo "InstPath"="%v%">>%temp%\dira.reg echo "InstExec"="%v%AI6WIN.exe">>%temp%\dira.reg regedit /s %temp%\dira.reg del /f /q %temp%\dira.reg
之前那个我可能有地方写错了,你这个试试看,如果还是同样的问题,可以试试给个截图,没报错信息有点难判断......
仿写了一个注册表,从别人那里仿照改写的,系统win11,本人已跑通,应该有用。
以下内容改成bat文件放游戏目录启动
@echo off set v=%~sdp0 set v=%v:\=\\% if exist %temp%\dira.reg del /f /q %temp%\dira.reg echo Windows Registry Editor Version 5.00>>%temp%\dira.reg echo [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\silky's\GakuenSaiminReido]>>%temp%\dira.reg echo "InstPath"="%v%">>%temp%\dira.reg echo "InstExec"="%v%AI6WIN.exe">>%temp%\dira.reg regedit /s %temp%\dira.reg del /f /q %temp%\dira.reg
⋯