How to Add an "Open With Notepad As Administrator" Shortcut to the Context Menu in Windows 7 and Windows Vista
To add an "Open with Notepad as Administrator" shortcut to the context menu in Windows 7 and Windows Vista, follow these steps:
1. Open Notepad as an administrator. To do this, right-click on the Notepad shortcut and select "Run as administrator."
2. In Notepad, copy and paste the following text:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\runas] @="Open with Notepad as Administrator"
[HKEY_CLASSES_ROOT\*\shell\runas\command] @="notepad.exe \"%1\""
3. Save the file with a .reg extension, such as "Open with Notepad as Administrator.reg".
4. Double-click the .reg file you just created and click "Yes" when prompted to add the information to the registry.
5. Once the information has been added to the registry, you should see the "Open with Notepad as Administrator" option when you right-click on a file.
Note: Modifying the registry can be risky, so it's important to create a backup of your registry before making any changes.