Open Command Prompt here (Administrator)
How to add an Open Command Prompt here (Administrator) option to the context menu for folders and to the Computer (previously My Computer)?
To add the Open Command Window Here (Administrator) option to the context menu for file system folders, use the following REG file:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Open Command Window Here (Administrator)"
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
Output as below:
To add the entry to Computer (My Computer) context menu, use the following REG file:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\runas]
@="Open Command Prompt (Administrator)"
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\runas\command]
@="cmd.exe"
Output as below:
How to create the REG file:
Copy the above contents to Notepad, and save the file with .REG extension. Then right-click the REG file and choose Merge.
The User Account Control (UAC) elevation prompt is presented to the user when clicking on this context menu option.
May 5, 2009
· Rahul Desai · No Comments
Posted in: General, Tools, Tips & Utilities
Leave a Reply
You must be logged in to post a comment.