window 在某个文件夹下打开cmd_如何快速在当前文件夹中打开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.

0818b9ca8b590ca3270a3433284dd417.png

0818b9ca8b590ca3270a3433284dd417.png

0818b9ca8b590ca3270a3433284dd417.png

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

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

0818b9ca8b590ca3270a3433284dd417.png   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.

0818b9ca8b590ca3270a3433284dd417.png   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.

0818b9ca8b590ca3270a3433284dd417.png   Warning

This will not work with

Library folders.

EXAMPLE: "Open Command Window Here" for a Folder and Drive

0818b9ca8b590ca3270a3433284dd417.png 

0818b9ca8b590ca3270a3433284dd417.png

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.

0818b9ca8b590ca3270a3433284dd417.png

0818b9ca8b590ca3270a3433284dd417.png

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值