hhh333 发表于 2019-2-16 23:43:42

关于在这里打开命令窗口

本帖最后由 hhh333 于 2019-2-27 17:25 编辑

如题,这个是系统本身带有的功能。注册表动一下就可以了。
1、NT5的:

Windows Registry Editor Version 5.00


;用于文件右键-------

@="在此处打开命令窗口(&W)"
"icon"="cmd.exe"

@="cmd.exe"

;用于目录右键------------

@="在此处打开命令窗口(&W)"
"icon"="cmd.exe"

@="cmd.exe /k cd \"%L\""

;用于目录背景右键----------

@="在此处打开命令窗口(&W)"
"icon"="cmd.exe"

@="cmd.exe /k cd \"%L\""

;用于盘符右键------------

@="在此处打开命令窗口(&W)"
"icon"="cmd.exe"

@="cmd.exe /k cd \"%L\""

;用于我的文档右键------------

@="在此处打开命令窗口(&W)"

@="cmd.exe /k cd \"%L\""

2、NT6的:
Windows Registry Editor Version 5.00


;用于文件右键-------
-

@="@shell32.dll,-8506"
"icon"="cmd.exe"

@="cmd.exe"

;用于目录右键------------
-

@="@shell32.dll,-8506"
"icon"="cmd.exe"

@="cmd.exe /s /k pushd \"%V\""

;用于目录背景右键----------
-

@="@shell32.dll,-8506"
"icon"="cmd.exe"

@="cmd.exe /s /k pushd \"%V\""

;用于盘符右键------------
-

@="@shell32.dll,-8506"
"icon"="cmd.exe"

@="cmd.exe /s /k pushd \"%V\""

;用于我的文档右键------------
-

@="@shell32.dll,-8506"

@="cmd.exe /s /k pushd \"%V\""

;用于库文件夹右键(只能对库文件夹下的子文件夹,对库本身会出错,因库只是一个集合名称并无具体位置)------------
-

@="@shell32.dll,-8506"
"Icon"="cmd.exe"

@="cmd.exe /s /k pushd \"%V\""
导入到software注册表,以述很清楚了,不再解释。文件传上来吧,直接拷贝上文有些字符丢了:


slore 发表于 2019-2-17 00:19:11

Win10的话,

D:\Dev\WimBuilder2\Projects\WIN10XPE\00-Configures\z-Customization\last.bat
if not exist "%X_SYS%\WindowsPowerShell\v1.0\powershell.exe" (
    rem use cmd.exe on directorybackground than powershell.exe
    rem Directory background context menu
    reg delete HKLM\Tmp_Software\Classes\Directory\background\shell\Powershell /v ShowBasedOnVelocityId /f
    reg add HKLM\Tmp_Software\Classes\Directory\background\shell\Powershell /v HideBasedOnVelocityId /t REG_DWORD /d 0x639bc8 /f
    reg delete HKLM\Tmp_Software\Classes\Directory\background\shell\cmd /v HideBasedOnVelocityId /f
    reg add HKLM\Tmp_Software\Classes\Directory\background\shell\cmd /v ShowBasedOnVelocityId /t REG_DWORD /d 0x639bc8 /f
    rem always show the menu item
    reg delete HKLM\Tmp_Software\Classes\Directory\background\shell\cmd /v Extended /f

    rem Directory context menu
    reg delete HKLM\Tmp_Software\Classes\Directory\shell\Powershell /v ShowBasedOnVelocityId /f
    reg add HKLM\Tmp_Software\Classes\Directory\shell\Powershell /v HideBasedOnVelocityId /t REG_DWORD /d 0x639bc8 /f
    reg delete HKLM\Tmp_Software\Classes\Directory\shell\cmd /v HideBasedOnVelocityId /f
    reg add HKLM\Tmp_Software\Classes\Directory\shell\cmd /v ShowBasedOnVelocityId /t REG_DWORD /d 0x639bc8 /f

)

vaf 发表于 2019-2-17 06:02:36

用于那些不便打开的地方,挺实用。

magicgenius 发表于 2019-2-17 08:41:57

我就用到点简单的。

Windows Registry Editor Version 5.00

;在命令提示符中打开

@="在命令提示符中打开"
"Icon"="cmd.exe"

@="cmd.exe /k cd /d \"%1\""

二九结狐六体 发表于 2019-2-17 09:53:11

不错的啊!

2012andyle113 发表于 2019-2-17 12:10:37

不错,可以,就是桌面空白点击没有

hhh333 发表于 2019-2-17 12:31:20

magicgenius 发表于 2019-2-17 08:41
我就用到点简单的。

我以前用这个,但左边窗口进不了

magicgenius 发表于 2019-2-17 12:44:41

hhh333 发表于 2019-2-17 12:31
我以前用这个,但左边窗口进不了

除了网络,其它的都可以吧。

hhh333 发表于 2019-2-17 12:46:38

magicgenius 发表于 2019-2-17 12:44
除了网络,其它的都可以吧。

NT6以上只右边可进,左边不行

2012zsw 发表于 2019-2-17 17:37:30

谢谢大大,辛苦了

xinhangxing123 发表于 2019-2-18 09:45:13

谢谢楼主分享

wych12 发表于 2019-2-25 16:30:21

hhh333大神,经测试,在WINXP中,右键乱码是怎么回事?能帮看下吗?

wych12 发表于 2019-2-25 17:51:16

hhh333大神,NT6的文件提示关联错误,尝试将 @="cmd.exe /s /k pushd "%V"" 改成 @="cmd.exe /s /k pushd \"%V\"" 才成功。NT5的总是乱码不知道原因?大神有时间帮忙关注一下!谢谢!

hhh333 发表于 2019-2-25 20:24:01

wych12 发表于 2019-2-25 17:51
hhh333大神,NT6的文件提示关联错误,尝试将 @="cmd.exe /s /k pushd "%V"" 改成 @="cmd.exe /s /k pushd \ ...

网页显示问题,把两个“\”搞没了
页: [1]
查看完整版本: 关于在这里打开命令窗口