windowsguy

Add Object to Context Menu

Jun 12th, 2023
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. Windows Registry Editor Version 5.00
  2.  
  3. [HKEY_CLASSES_ROOT\Directory\Background\shell]
  4.  
  5. [HKEY_CLASSES_ROOT\Directory\Background\shell\cmd]
  6. @="@shell32.dll,-8506"
  7. "Extended"=""
  8. "HideBasedOnVelocityId"=dword:00639bc8
  9. "NoWorkingDirectory"=""
  10.  
  11. [HKEY_CLASSES_ROOT\Directory\Background\shell\cmd\command]
  12. @="cmd.exe /s /k pushd \"%V\""
  13.  
  14. [HKEY_CLASSES_ROOT\Directory\Background\shell\Open CMD Here]
  15. "Icon"="C:\\WINDOWS\\system32\\imageres.dll,262"
  16.  
  17. [HKEY_CLASSES_ROOT\Directory\Background\shell\Open CMD Here\command]
  18. @="\"C:\\WINDOWS\\system32\\cmd.exe\""
  19.  
  20. [HKEY_CLASSES_ROOT\Directory\Background\shell\Powershell]
  21. @="@shell32.dll,-8508"
  22. "Extended"=""
  23. "NoWorkingDirectory"=""
  24. "ShowBasedOnVelocityId"=dword:00639bc8
  25.  
  26. [HKEY_CLASSES_ROOT\Directory\Background\shell\Powershell\command]
  27. @="powershell.exe -noexit -command Set-Location -literalPath '%V'"
  28.  
  29. [HKEY_CLASSES_ROOT\Directory\Background\shell\CMD - Administrator]
  30. "Icon"="C:\\WINDOWS\\system32\\imageres.dll,263"
  31.  
  32. [HKEY_CLASSES_ROOT\Directory\Background\shell\CMD - Administrator\command]
  33. @="powershell -Command \"Start-Process cmd -Verb RunAs\" "
  34.  
  35. ---------------------------
  36.  
  37. chcp 65001
  38. REG DELETE "HKEY_CLASSES_ROOT\Directory\Background\shell\Open CMD Here" /f
  39. REG DELETE "HKEY_CLASSES_ROOT\Directory\Background\shell\CMD - Administrator" /f
Advertisement
Add Comment
Please, Sign In to add comment