New
#1
can someone help me combine these two .reg into a context menu flyout?
so i have a few reg files that ive been basically taking turns importing back and forth.
they do what i need them to but id like to have them both present at once as a context menu entry "Restore Ownership" with a submenu like "Restore to SYSTEM" and "Restore to TrustedInstaller" or some such.
this'll also serve as a template/example for me going forward, so theres that :)
Code:[HKEY_CLASSES_ROOT\*\shell\RestoreOwnership] @="Restore Ownership" "HasLUAShield"="" "NoWorkingDirectory"="" "NeverDefault"="" [HKEY_CLASSES_ROOT\*\shell\RestoreOwnership\command] @="cmd.exe /c icacls \"%1\" /setowner \"SYSTEM\" /t /c & pause" "IsolatedCommand"="cmd.exe /c icacls \"%1\" /setowner \"SYSTEM\" /t /c & pause" [HKEY_CLASSES_ROOT\Directory\shell\RestoreOwnership] @="Restore Ownership" "HasLUAShield"="" "NoWorkingDirectory"="" "NeverDefault"="" [HKEY_CLASSES_ROOT\Directory\shell\RestoreOwnership\command] @="cmd.exe /c icacls \"%1\" /setowner \"SYSTEM\" /t /c & pause" "IsolatedCommand"="cmd.exe /c icacls \"%1\" /setowner \"SYSTEM\" /t /c & pause"
and
Code:[HKEY_CLASSES_ROOT\*\shell\RestoreOwnership] @="Restore Ownership" "HasLUAShield"="" "NoWorkingDirectory"="" "NeverDefault"="" [HKEY_CLASSES_ROOT\*\shell\RestoreOwnership\command] @="cmd.exe /c icacls \"%1\" /setowner \"NT Service\\TrustedInstaller\" /t /c & pause" "IsolatedCommand"="cmd.exe /c icacls \"%1\" /setowner \"NT Service\\TrustedInstaller\" /t /c & pause" [HKEY_CLASSES_ROOT\Directory\shell\RestoreOwnership] @="Restore Ownership" "HasLUAShield"="" "NoWorkingDirectory"="" "NeverDefault"="" [HKEY_CLASSES_ROOT\Directory\shell\RestoreOwnership\command] @="cmd.exe /c icacls \"%1\" /setowner \"NT Service\\TrustedInstaller\" /t /c & pause" "IsolatedCommand"="cmd.exe /c icacls \"%1\" /setowner \"NT Service\\TrustedInstaller\" /t /c & pause"