Open Command Window Here as Administrator
Add or Remove "Open Command Window Here as Administrator" to Context Menu
EXAMPLE: Open Command Window Here as Administrator
NOTE: This is the context menu with this added and you right click on a drive, folder, or on the desktop.
Here's How:
1. Do step 2, 3, or 4 below for what you would like to do.
2. Add "Open Command Window Here as Administrator" to Context Menu
A) Click/tap on the download button below to download the file below, and go to step 5 below.3. Add Shift + Right Click "Open Command Window Here as Administrator" to Context Menu
Add_Open_Command_Window_Here_as_Administrator.reg
Windows Registry Editor Version 5.00
; Created by: Shawn Brink
; http://www.sevenforums.com
; Tutorial: http://www.sevenforums.com/tutorials/47415-open-command-window-here-administrator.html
[-HKEY_CLASSES_ROOT\Directory\shell\runas]
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Open command window here as Administrator"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[-HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
@="Open command window here as Administrator"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[-HKEY_CLASSES_ROOT\Drive\shell\runas]
[HKEY_CLASSES_ROOT\Drive\shell\runas]
@="Open command window here as Administrator"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Drive\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[-HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas]
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas]
"HasLUAShield"=""
@="Open command window here as Administrator"
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
A) Click/tap on the download button below to download the file below, and go to step 5 below.4. Remove "Open Command Window Here as Administrator" from Context Menu
Add_Shift+Open_Command_Window_Here_as_Administrator.reg
Windows Registry Editor Version 5.00
; Created by: Shawn Brink
; http://www.sevenforums.com
; Tutorial: http://www.sevenforums.com/tutorials/47415-open-command-window-here-administrator.html
[-HKEY_CLASSES_ROOT\Directory\shell\runas]
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Open command window here as Administrator"
"Extended"=""
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[-HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
@="Open command window here as Administrator"
"Extended"=""
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[-HKEY_CLASSES_ROOT\Drive\shell\runas]
[HKEY_CLASSES_ROOT\Drive\shell\runas]
@="Open command window here as Administrator"
"Extended"=""
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Drive\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[-HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas]
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas]
"Extended"=""
"HasLUAShield"=""
@="Open command window here as Administrator"
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
A) Click/tap on the download button below to download the file below, and go to step 5 below.5. Save the .reg file to your desktop.
Remove_Open_Command_Window_Here_as_Administrator.reg
Windows Registry Editor Version 5.00
; Created by: Shawn Brink
; http://www.sevenforums.com
; Tutorial: http://www.sevenforums.com/tutorials/47415-open-command-window-here-administrator.html
[-HKEY_CLASSES_ROOT\Directory\shell\runas]
[-HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
[-HKEY_CLASSES_ROOT\Drive\shell\runas]
[-HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas]
6. Double click/tap on the downloaded .reg file to merge it.
7. When prompted, click on Run , Yes (UAC), Yes , and OK to approve merging the .reg file.
8. You can now delete the downloaded .reg file if you like.
That's it
Shawn
Windows 7: Open Command Window Here
How to Use "Open Command Window Here" in Windows 7
Information
This will show you how to use the
Open Command Window Here context menu item of a
folder or
driveto open a command prompt with the focus at the folder or drive location in Windows 7.
This will make it easier to perform a command task at that folder or drive location instead of having to open a command prompt normally and manually type the folder location in it using the CD\ command.
This will make it easier to perform a command task at that folder or drive location instead of having to open a command prompt normally and manually type the folder location in it using the CD\ command.
Note
- The Open Command Window Here context menu is only available for a folder, included library folder, or drive in Windows Explorer, Navigation Pane, and on the Desktop.
- The Open Command Window Here context menu is not available for a Library or files (ex: exe, txt, etc...).
- The Open Command Window Here context menu item only opens a normal command prompt and not an elevated command prompt.
Warning
This will not work with
Library folders.
EXAMPLE: "Open Command Window Here" for a Folder and Drive
Here's How:
1. Press and hold the Shift key and right click on the folder or drive that you want to open a command prompt with the focus at, and click on Open Command Window Here.That's it,2. Release the Shift key.
Shawn
参考网站地址:
1.http://www.sevenforums.com/tutorials/47415-open-command-window-here-administrator.html
2.http://www.cnblogs.com/Wayou/p/3359993.html
3.http://www.sevenforums.com/tutorials/27778-open-command-window-here.html