@echo off
setlocal
:: handle64.exe가 위치한 경로로 이동
cd /d "C:UsersuserDocumentsDiablo IIHandle"
:: handle64.exe 존재 여부 확인
if not exist "handle64.exe" (
echo [오류] handle64.exe를 찾을 수 없습니다. 경로를 확인해주세요.
pause
exit /b
)
echo Diablo II: Resurrected 핸들 정리를 시작합니다...
:: 1. DiabloII Check For Other Instances 핸들 종료
for /f "tokens=3,6" %%a in ('handle64.exe -p D2R.exe -a "DiabloII Check For Other Instances" ^| findstr /i "DiabloII"') do (
handle64.exe -p %%a -c %%b -y
)
:: 2. windows_shell_global_counters 핸들 종료
for /f "tokens=3,6" %%a in ('handle64.exe -p D2R.exe -a "windows_shell_global_counters" ^| findstr /i "windows_shell"') do (
handle64.exe -p %%a -c %%b -y
)
echo.
echo 모든 작업이 완료되었습니다.
@echo off
set "d2path=C:UsersuserSaved GamesDiablo II Resurrected"
:: 3. Settings.json 파일을 지운다.
if exist "%d2path%Settings.json" del /q "%d2path%Settings.json"
:: 4. Settings2.json 파일을 Settings.json 이름으로 복사하여 붙여넣는다.
copy /y "%d2path%Settings2.json" "%d2path%Settings.json"
echo 설정 복사가 완료되었습니다.
:: 바탕화면의 dia2 바로가기 실행
echo dia2 sub 바로가기를 실행합니다...
start "" "C:UsersuserDesktopdia2 sub.lnk"
exit
해당 바로가기가 시작화면에 고정이 안될 경우 속성의 대상에서 앞에 explorer를 추가하시면 해결 됩니다.