Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- REM POE AIO loader v7
- REM CONFIG START
- SET limitedUser=liza
- SET gamepath=D:\games\poe
- SET tradehelper1=C:\Users\%limitedUser%\AppData\Local\PoeLurker
- SET trademacro1=C:\Users\%limitedUser%\AppData\Local\Programs\Awakened PoE Trade
- REM CONFIG END
- REM kill related to poe apps
- taskkill /f /im "Loader.exe"
- taskkill /f /im "VBCSCompiler.exe"
- taskkill /f /im "PoeLurker.exe"
- taskkill /f /im "Awakened PoE Trade.exe"
- REM delete all empty directories (empty folder in plugins\compiled can prevent it loading from source)
- for /f "delims=" %%d in ('dir /s /b /ad ^| sort /r') do rd "%%d"
- ECHO Enter limited user password below
- RUNAS /user:%limitedUser% /savecred "cmd /C pushd "%gamepath%" && start PathOfExile.exe --nologo --nopatch --nosound"
- REM price checker. Pick one
- RUNAS /user:%limitedUser% /savecred "cmd /C pushd \"C:/Users/liza/AppData/Local/Programs/Awakened PoE Trade/\" && \"Awakened PoE Trade.exe\""
- REM trade helper. Pick one
- RUNAS /user:%limitedUser% /savecred "cmd /C pushd "%tradehelper1%" && PoeLurker.exe"
- REM waiting 180 sec or until user close poe
- for /l %%x in (1, 1, 180) do (
- Timeout /T 1 /Nobreak
- tasklist | find /i "PathOfExile" >nul 2>&1
- IF ERRORLEVEL 1 (
- GOTO INITIAL_DELAY_END
- )
- )
- :INITIAL_DELAY_END
- REM waiting for poe to exit
- :MAIN_LOOP_START
- tasklist | find /i "PathOfExile" >nul 2>&1
- IF ERRORLEVEL 1 (
- GOTO MAIN_LOOP_END
- ) ELSE (
- ECHO POE is still running
- Timeout /T 1 /Nobreak
- GOTO MAIN_LOOP_START
- )
- :MAIN_LOOP_END
- REM kill related to poe apps
- taskkill /f /im "Loader.exe"
- taskkill /f /im "VBCSCompiler.exe"
- taskkill /f /im "PoeLurker.exe"
- taskkill /f /im "Awakened PoE Trade.exe"
- REM finally kill all cmd windows
- taskkill /f /im "cmd.exe"
- taskkill /f /im "conhost.exe"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement