Wednesday, 13 September 2017

Run a program from context menu with admin priveledges (vista UAC)


I have been using Notepad2 lately, great util and i added it to the context menu hence i can click on a file and say Notepad2 and it edits it .. but it loads notepad2 without admin privs so i can't save the file.. How can i force it to open with admin privs


Here is what i have, works great apart from can't save in protected parts of disks in vista but of course loading notepad manually as admin works.


[HKEY_CLASSES_ROOT*\shell]


[HKEY_CLASSES_ROOT*\shell\Notepad2]


[HKEY_CLASSES_ROOT*\shell\Notepad2\command] @="\"C:\Program Files\Notepad2\Notepad2.exe\" \"%1\""



Answer



You can use the Elevate Power Toy from Microsoft and just change your registry key to


[HKEY_CLASSES_ROOT*\shell\Notepad2\command] @="elevate \"C:\Program Files\Notepad2\Notepad2.exe\" \"%1\""

No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...