博客
关于我
在此处打开命令改为CMD或Powershell
阅读量:82 次
发布时间:2019-02-26

本文共 804 字,大约阅读时间需要 2 分钟。

注册表编辑默认程序打开方式

在Windows系统中,通过注册表编辑默认程序的打开方式,可以实现对特定文件或文件夹的默认应用程序的修改。本文将指导您如何在注册表中手动进行此类设置。

步骤一:打开注册表编辑器按下 "Windows + R" 键,输入 "regedit" 并按回车键,或者在Cortana中直接搜索 "regedit" 并打开注册表管理器。

步骤二:定位注册表路径在注册表中,定位以下路径:

HKCR\Directory\Background\shell\Powershell\command

注:对于Win10创新者版本(Creators Update)及更高版本,您可以将路径简化为:

HKCR\Directory\Background\shell\Powershell\command

步骤三:修改命令字符串值右键点击目标 "command" 项,选择 "权限",在弹出的窗口中点击 "高级"。如果看到 "TrustedInstaller" 作为所有者,点击 "更改",输入当前用户账户名(如 "xxxxxxabc"),然后点击 "检查名称" 确认。

步骤四:设置权限将当前用户的权限从 "读取" 修改为 "完全控制",以便正常修改注册表键值。

步骤五:更新命令字符串在 "command" 项的右侧,修改默认字符串值为:

cmd.exe /s /k pushd "%V"

保存更改后,确保路径正确。

步骤六:验证设置在资源管理器中按住 Shift 键右击空白处,选择 "在此处打开命令提示符",即可验证设置是否生效。

附:恢复方法若需恢复默认设置,将命令字符串恢复为:

powershell.exe -noexit -command Set-Location -literalPath '%V'

请确保不包含引号。

以上步骤可帮助您轻松修改默认程序的打开方式,具体操作请按照上述指南执行。

转载地址:http://eyuk.baihongyu.com/

你可能感兴趣的文章
NN&DL4.3 Getting your matrix dimensions right
查看>>
NN&DL4.8 What does this have to do with the brain?
查看>>
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
No Datastore Session bound to thread, and configuration does not allow creation of non-transactional
查看>>
No fallbackFactory instance of type class com.ruoyi---SpringCloud Alibaba_若依微服务框架改造---工作笔记005
查看>>
No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc
查看>>
No mapping found for HTTP request with URI [/...] in DispatcherServlet with name ...的解决方法
查看>>
No module named cv2
查看>>
No module named tensorboard.main在安装tensorboardX的时候遇到的问题
查看>>
No module named ‘MySQLdb‘错误解决No module named ‘MySQLdb‘错误解决
查看>>
No new migrations found. Your system is up-to-date.
查看>>
No qualifying bean of type XXX found for dependency XXX.
查看>>
No resource identifier found for attribute 'srcCompat' in package的解决办法
查看>>
No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
查看>>
NO.23 ZenTaoPHP目录结构
查看>>
NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata
查看>>
Node JS: < 一> 初识Node JS
查看>>
Node-RED中使用JSON数据建立web网站
查看>>
Node-RED中使用node-red-browser-utils节点实现选择Windows操作系统中的文件并实现图片预览
查看>>
Node-RED中实现HTML表单提交和获取提交的内容
查看>>