Windows|当前目录打开cmd和powershell

在windows的右键菜单添加快捷入口:
从这里进入cmd(命令行)和从这里进行powershell
将以下内容以ansi编码保存到cmd.reg

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\psadmin]
"ShowBasedOnVelocityId"=dword:00639bc8
@="从这里进入powershell"
"Icon"="powershell.exe"

[HKEY_CLASSES_ROOT\Directory\Background\shell\psadmin\command]
@="powershell.exe -noexit -command Set-Location -literalPath '%V'"

[HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
@="从这里进入cmd"
"Icon"="C:\\Windows\\System32\\cmd.exe,0"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
"Icon"="C:\\Windows\\System32\\cmd.exe,0"

双击导入即可.


相关博文

About rainbird

IOS攻城狮
This entry was posted in windows and tagged , , , , , . Bookmark the permalink.

发表评论