@echo off

start D:\"Genshin Impact"\launcher.exe

timeout /t 2 /nobreak


:launcher_check

tasklist /fi "IMAGENAME EQ launcher.exe" |find "launcher.exe" > nul

if not errorlevel 1 (goto gi_check) else (exit)


:gi_check

tasklist /fi "IMAGENAME EQ GenshinImpact.exe" |find "GenshinImpact.exe" > nul

if errorlevel 1 (timeout /t 1 /nobreak && goto launcher_check) else (goto gi_close_check)


:gi_close_check

tasklist /fi "IMAGENAME EQ GenshinImpact.exe" |find "GenshinImpact.exe" > nul

if not errorlevel 1 (timeout /t 30 /nobreak && goto gi_close_check) else (sc stop mhyprot2 && goto launcher_check)




두번째줄 start D:\"Genshin Impact"\launcher.exe 에 자기가 깐 경로 다르면 이부분 바꿔줘야함.

폴더에 띄어쓰기 있으면 폴더명에 " "로 감싸줘야 인식한다

이걸 텍스트파일에 복붙하고 경로 바꿔준다음 txt파일 확장자 bat로 바꿔주면댐.

이제 겜킬때 런쳐대신 이 bat파일 관리자권한으로 실행해주면됨.


프로세스에서 원신안켜져있으면 자동으로 감지해서 백도어 프로그램 종료 명령어 활성화시키는거임


출처가면 프롬프트 안보이게하는 코드도 있긴한데 난 작동 제대로 안하더라.


대충 램 10mb 정도 쳐먹는듯. 아까우면 쓰지마셈


출처 : https://www.reddit.com/r/Genshin_Impact/comments/j0o717/i_wrote_some_code_to_stop_mhyprot2_when_the_game/