win10右键添加命令行
(win10怎么添加右键)
1.新建一个.reg格式的文件编辑,写入以下内容,保存点击运行即可。
Windows Registry Editor Version 5.00 ; 若原先有,先删除原来的[-HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenCmdHere][-HKEY_CLASSES_ROOTDirectoryBackgroundshellrunas][-HKEY_CLASSES_ROOTDirectoryBackgroundshellPowershellAdmin] 电脑 ; 1.右键:命令行[HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenCmdHere]@="在此处打开命令行窗口" [HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenCmdHerecommand]@="cmd.exe 电脑-noexit -command Set-Location -literalPath "%V"" ; 2.右键:命令行(管理员)[HKEY_CLASSES_ROOTDirectoryBackgroundshellrunas]@="在此处打开命令行窗口(管理员)""ShowBasedOnVelocityId"=dword:00639bc8 [HKEY_CLASSES_ROOTDirectoryBackgroundshellrunascommand]@="cmd.exe /s /k pushd "%V"" ; 3.shift+右键:Powershell(管理员)[HKEY_CLASSES_ROOTDirectoryBackgroundshellPowershellAdmin]@="在此处打开 Powershell 窗口(管理员)""Extended"="" [HKEY_CLASSES_ROOTDirectoryBackgroundshellPowershellAdmincommand]@=""C:\Windows\System32\WindowsPowerShell\v1.0电脑 powershell.exe" -windowstyle hidden -Command $stpath = pwd; Start-Process PowerShell -ArgumentList \"-NoExit\",\"-Command Set-Location -literalPath '%V'\" -verb RunA
电脑
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。