如何快速在当前文件夹中打开cmd或者以管理员身份打开cmd

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.

Name:  Drive.jpgViews: 63536Size:  34.8 KBName:  Folder.jpgViews: 62954Size:  37.1 KBName:  Desktop.jpgViews: 62830Size:  38.0 KB

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.

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\""
3. Add Shift + Right Click "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.

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\""
4. Remove "Open Command Window Here as Administrator" from Context Menu
A) Click/tap on the download button below to download the file below, and go to step 5 below.

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]
5. Save the .reg file to your desktop.

6. Double click/tap on the downloaded .reg file to merge it.

7. When prompted, click on RunYes (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   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.
Note   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   Warning
This will not work with Library folders.

EXAMPLE: "Open Command Window Here" for a Folder and Drive
Name:  Folder_command_prompt.jpgViews: 217374Size:  43.5 KB 
Name:  Drive_command_prompt.jpgViews: 216862Size:  43.3 KB
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.
Name:  Folder_Context_Menu.jpgViews: 217490Size:  71.5 KBName:  Drive_Context_Menu.jpgViews: 217237Size:  60.0 KB 
2. Release the Shift key.
That's it,
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

展开阅读全文

没有更多推荐了,返回首页