Imthedude025

Set Terraria TmodLoader's Priority (Batch)

Dec 12th, 2017
72
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ::Made by RU$$ for Shevaras [http://russdev.mooo.com/]
  2. @Echo off
  3. Title Set Terraria TmodLoader's Priority
  4.  
  5. tasklist | find "Terrariamod"
  6.  
  7. IF [%errorlevel%] EQU [0] (GOTO :MENU) ELSE (GOTO :NotFound)
  8.  
  9. :NotFound
  10. echo ERROR: TmodLoader is not open!
  11. echo.
  12. pause.
  13. exit
  14.  
  15. :MENU
  16. cls
  17. echo 1. Idle[64]
  18. echo 2. Bellow Normal[16384]
  19. echo 3. Normal[32]
  20. echo 4. Above Normal[32768]
  21. echo 5. High Priority[128]
  22. echo 6. Real Time[256]
  23. echo.
  24. echo 7. Exit
  25.  
  26. echo.
  27.  
  28. SET INPUT=
  29. SET /P INPUT= Select a Priority:
  30. IF /I '%INPUT%'=='1' wmic process where name="Terrariamod.exe" CALL setpriority 64 & goto :A
  31. IF /I '%INPUT%'=='2' wmic process where name="Terrariamod.exe" CALL setpriority 16384 & goto :A
  32. IF /I '%INPUT%'=='3' wmic process where name="Terrariamod.exe" CALL setpriority 32 & goto :A
  33. IF /I '%INPUT%'=='4' wmic process where name="Terrariamod.exe" CALL setpriority 32768 & goto :A
  34. IF /I '%INPUT%'=='5' wmic process where name="Terrariamod.exe" CALL setpriority 128 & goto :A
  35. IF /I '%INPUT%'=='6' wmic process where name="Terrariamod.exe" CALL setpriority 256 & goto :A
  36. IF /I '%INPUT%'=='7' exit
  37.  
  38. goto :MENU
  39.  
  40. :A
  41. cls
  42. echo SUCCESS: TmodLoader's priority has been set!
  43. echo.
  44. pause.
  45. exit
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×