Advertisement
Guest User

Untitled

a guest
Jul 15th, 2021
507
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. REM POE AIO loader v7
  2. REM CONFIG START
  3. SET limitedUser=liza
  4. SET gamepath=D:\games\poe
  5. SET tradehelper1=C:\Users\%limitedUser%\AppData\Local\PoeLurker
  6. SET trademacro1=C:\Users\%limitedUser%\AppData\Local\Programs\Awakened PoE Trade
  7. REM CONFIG END
  8.  
  9. REM kill related to poe apps
  10. taskkill /f /im "Loader.exe"
  11. taskkill /f /im "VBCSCompiler.exe"
  12. taskkill /f /im "PoeLurker.exe"
  13. taskkill /f /im "Awakened PoE Trade.exe"
  14.  
  15. REM delete all empty directories (empty folder in plugins\compiled can prevent it loading from source)
  16. for /f "delims=" %%d in ('dir /s /b /ad ^| sort /r') do rd "%%d"
  17.  
  18. ECHO Enter limited user password below
  19. RUNAS /user:%limitedUser% /savecred "cmd /C pushd "%gamepath%" && start PathOfExile.exe --nologo --nopatch --nosound"
  20.  
  21. REM price checker. Pick one
  22. RUNAS /user:%limitedUser% /savecred "cmd /C pushd \"C:/Users/liza/AppData/Local/Programs/Awakened PoE Trade/\" && \"Awakened PoE Trade.exe\""
  23.  
  24. REM trade helper. Pick one
  25. RUNAS /user:%limitedUser% /savecred "cmd /C pushd "%tradehelper1%" && PoeLurker.exe"
  26.  
  27. REM waiting 180 sec or until user close poe
  28. for /l %%x in (1, 1, 180) do (
  29. Timeout /T 1 /Nobreak
  30. tasklist | find /i "PathOfExile" >nul 2>&1
  31. IF ERRORLEVEL 1 (
  32. GOTO INITIAL_DELAY_END
  33. )
  34. )
  35. :INITIAL_DELAY_END
  36.  
  37. REM waiting for poe to exit
  38. :MAIN_LOOP_START
  39. tasklist | find /i "PathOfExile" >nul 2>&1
  40. IF ERRORLEVEL 1 (
  41. GOTO MAIN_LOOP_END
  42. ) ELSE (
  43. ECHO POE is still running
  44. Timeout /T 1 /Nobreak
  45. GOTO MAIN_LOOP_START
  46. )
  47. :MAIN_LOOP_END
  48.  
  49. REM kill related to poe apps
  50. taskkill /f /im "Loader.exe"
  51. taskkill /f /im "VBCSCompiler.exe"
  52. taskkill /f /im "PoeLurker.exe"
  53. taskkill /f /im "Awakened PoE Trade.exe"
  54. REM finally kill all cmd windows
  55. taskkill /f /im "cmd.exe"
  56. taskkill /f /im "conhost.exe"
  57.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement