Trottlemenu.reg 5.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. Windows Registry Editor Version 5.00
  2. ;Copyright 2016 Trottle
  3. ;This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3.
  4. ;This program is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  5. ;See <http://www.gnu.org/licenses/> for more details.
  6. [-HKEY_CLASSES_ROOT\exefile\shell\Bpc]
  7. [HKEY_CLASSES_ROOT\exefile\shell\Bpc]
  8. "HasLUAShield"=""
  9. "MUIVerb"="Set base priority"
  10. "subcommands"=""
  11. [HKEY_CLASSES_ROOT\exefile\shell\Bpc\shell\01low]
  12. "MUIVerb"="Idle CPU, lowest IO, low paging"
  13. "Icon"="comres.dll,9"
  14. [HKEY_CLASSES_ROOT\exefile\shell\Bpc\shell\01low\command]
  15. @="cmd /q /c echo Windows Registry Editor Version 5.00>%%TEMP%%\\pr.reg & echo.>>%%TEMP%%\\pr.reg & for /f \"delims=<\" %%i in (\"%1\") do echo [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\%%~nxi\\PerfOptions]>>%%TEMP%%\\pr.reg & echo.>>%%TEMP%%\\pr.reg & echo \"CpuPriorityClass\"=dword:00000001>>%%TEMP%%\\pr.reg & echo.>>%%TEMP%%\\pr.reg & echo \"IoPriority\"=dword:00000000>>%%TEMP%%\\pr.reg & echo.>>%%TEMP%%\\pr.reg & echo \"PagePriority\"=dword:00000001>>%%TEMP%%\\pr.reg & regedit /s %%TEMP%%\\pr.reg & del %%TEMP%%\\pr.reg & msg * %~ni priority is set to IDLE"
  16. [HKEY_CLASSES_ROOT\exefile\shell\Bpc\shell\02below]
  17. "MUIVerb"="Below normal CPU, low IO"
  18. "Icon"="comres.dll,12"
  19. [HKEY_CLASSES_ROOT\exefile\shell\Bpc\shell\02below\command]
  20. @="cmd /q /c echo Windows Registry Editor Version 5.00>%%TEMP%%\\pr.reg & echo.>>%%TEMP%%\\pr.reg & for /f \"delims=<\" %%i in (\"%1\") do echo [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\%%~nxi\\PerfOptions]>>%%TEMP%%\\pr.reg & echo.>>%%TEMP%%\\pr.reg & echo \"CpuPriorityClass\"=dword:00000005>>%%TEMP%%\\pr.reg & echo.>>%%TEMP%%\\pr.reg & echo \"IoPriority\"=dword:00000001>>%%TEMP%%\\pr.reg & echo.>>%%TEMP%%\\pr.reg & echo \"PagePriority\"=->>%%TEMP%%\\pr.reg & regedit /s %%TEMP%%\\pr.reg & del %%TEMP%%\\pr.reg & msg * %~ni priority is set to BELOW NORMAL"
  21. [HKEY_CLASSES_ROOT\exefile\shell\Bpc\shell\03above]
  22. "Icon"="comres.dll,8"
  23. "MUIVerb"="Above normal CPU"
  24. [HKEY_CLASSES_ROOT\exefile\shell\Bpc\shell\03above\command]
  25. @="cmd /q /c echo Windows Registry Editor Version 5.00>%%TEMP%%\\pr.reg & echo.>>%%TEMP%%\\pr.reg & for /f \"delims=<\" %%i in (\"%1\") do echo [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\%%~nxi\\PerfOptions]>>%%TEMP%%\\pr.reg & echo.>>%%TEMP%%\\pr.reg & echo \"CpuPriorityClass\"=dword:00000006>>%%TEMP%%\\pr.reg & echo.>>%%TEMP%%\\pr.reg & echo \"IoPriority\"=->>%%TEMP%%\\pr.reg & echo.>>%%TEMP%%\\pr.reg & echo \"PagePriority\"=->>%%TEMP%%\\pr.reg & regedit /s %%TEMP%%\\pr.reg & del %%TEMP%%\\pr.reg & msg * %~ni priority is set to ABOVE NORMAL"
  26. [HKEY_CLASSES_ROOT\exefile\shell\Bpc\shell\04high]
  27. "MUIVerb"="High CPU"
  28. "Icon"="comres.dll,16"
  29. "CommandFlags"=dword:00000040
  30. [HKEY_CLASSES_ROOT\exefile\shell\Bpc\shell\04high\command]
  31. @="cmd /q /c echo Windows Registry Editor Version 5.00>%%TEMP%%\\pr.reg & echo.>>%%TEMP%%\\pr.reg & for /f \"delims=<\" %%i in (\"%1\") do echo [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\%%~nxi\\PerfOptions]>>%%TEMP%%\\pr.reg & echo.>>%%TEMP%%\\pr.reg & echo \"CpuPriorityClass\"=dword:00000003>>%%TEMP%%\\pr.reg & echo.>>%%TEMP%%\\pr.reg & echo \"IoPriority\"=->>%%TEMP%%\\pr.reg & echo.>>%%TEMP%%\\pr.reg & echo \"PagePriority\"=->>%%TEMP%%\\pr.reg & regedit /s %%TEMP%%\\pr.reg & del %%TEMP%%\\pr.reg & msg * %~ni priority is set to HIGH"
  32. [HKEY_CLASSES_ROOT\exefile\shell\Bpc\shell\06ask]
  33. "MUIVerb"="Show current priorities"
  34. "Icon"="shell32.dll,23"
  35. [HKEY_CLASSES_ROOT\exefile\shell\Bpc\shell\06ask\command]
  36. @="cmd /q /c for /f \"delims=<\" %%i in (\"%1\") do reg query \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\%%~nxi\\PerfOptions\" /s | msg *"
  37. [HKEY_CLASSES_ROOT\exefile\shell\Bpc\shell\07default]
  38. "MUIVerb"="Restore to default"
  39. "Icon"="comres.dll,4"
  40. [HKEY_CLASSES_ROOT\exefile\shell\Bpc\shell\07default\command]
  41. @="cmd /q /c echo Windows Registry Editor Version 5.00>%%TEMP%%\\pr.reg & echo.>>%%TEMP%%\\pr.reg & for /f \"delims=<\" %%i in (\"%1\") do echo [-HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\%%~nxi\\PerfOptions]>>%%TEMP%%\\pr.reg & regedit /s %%TEMP%%\\pr.reg & del %%TEMP%%\\pr.reg & msg * %~ni priority is restored to default"
  42. ; If you do not want to have uninstaller you can skip next part:
  43. [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\BpcSubMenu]
  44. "DisplayName"="'Set base priority' submenu"
  45. "DisplayIcon"="imageres.dll,73"
  46. "UninstallString"="cmd /q /c echo Windows Registry Editor Version 5.00>%TEMP%\\pr.reg & echo.>>%TEMP%\\pr.reg & echo [-HKEY_CLASSES_ROOT\\exefile\\shell\\Bpc]>>%TEMP%\\pr.reg & echo.>>%TEMP%\\pr.reg & echo [-HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\BpcSubMenu]>>%TEMP%\\pr.reg & regedit /s %TEMP%\\pr.reg & del %TEMP%\\pr.reg"
  47. "DisplayVersion"="1.1"
  48. "URLInfoAbout"="http://habrahabr.ru/post/317802/"
  49. "NoModify"=dword:00000001
  50. "NoRepair"=dword:00000001