zoukankan      html  css  js  c++  java
  • 右键菜单怎样添加“在此处打开命令提示符”选项

    效果图:

    1.增加命令提示符

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOTDirectoryshellOpenCmdHere]
    @="在此处打开命令提示符"
    "Icon"="cmd.exe"
    
    [HKEY_CLASSES_ROOTDirectoryshellOpenCmdHerecommand]
    @="cmd.exe /s /k pushd "%V""
    
    [HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenCmdHere]
    @="在此处打开命令提示符"
    "Icon"="cmd.exe"
    
    [HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenCmdHerecommand]
    @="cmd.exe /s /k pushd "%V""
    
    [HKEY_CLASSES_ROOTDriveshellOpenCmdHere]
    @="在此处打开命令提示符"
    "Icon"="cmd.exe"
    
    [HKEY_CLASSES_ROOTDriveshellOpenCmdHerecommand]
    @="cmd.exe /s /k pushd "%V""
    
    [HKEY_CLASSES_ROOTLibraryFolderackgroundshellOpenCmdHere]
    @="在此处打开命令提示符"
    "Icon"="cmd.exe"
    
    [HKEY_CLASSES_ROOTLibraryFolderackgroundshellOpenCmdHerecommand]
    @="cmd.exe /s /k pushd "%V""
    

      2.增加PowerShell

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOTDirectoryshellOpenPsHere]
    @="在此处打开PowerShell"
    "Icon"="powershell.exe"
    
    [HKEY_CLASSES_ROOTDirectoryshellOpenPsHerecommand]
    @="powershell.exe -noexit -command Set-Location -literalPath '%V'"
    
    [HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenPsHere]
    @="在此处打开PowerShell"
    "Icon"="powershell.exe"
    
    [HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenPsHerecommand]
    @="powershell.exe -noexit -command Set-Location -literalPath '%V'"
    
    [HKEY_CLASSES_ROOTDriveshellOpenPsHere]
    @="在此处打开PowerShell"
    "Icon"="powershell.exe"
    
    [HKEY_CLASSES_ROOTDriveshellOpenPsHerecommand]
    @="powershell.exe -noexit -command Set-Location -literalPath '%V'"
    
    [HKEY_CLASSES_ROOTLibraryFolderackgroundshellOpenPsHere]
    @="在此处打开PowerShell"
    "Icon"="powershell.exe"
    
    [HKEY_CLASSES_ROOTLibraryFolderackgroundshellOpenPsHerecommand]
    @="powershell.exe -noexit -command Set-Location -literalPath '%V'"
    

      以上内容保存为缀名为OpenCmdHere.reg,双击OpenCmdHere.reg文件运行,弹出的提示点确认,修改注册表就大功告成了!

       下载链接:https://files.cnblogs.com/files/dyj057/opencmdhere.zip

  • 相关阅读:
    Redis的四种模式,单机、主从、哨兵、集群
    .NET 跨域问题
    C# 利用正则表达式获取富文本框中所有图片路劲
    ActiveMQ入门实例(.NET)
    ActiveMQ的使用以及应用场景
    关于消息队列的使用方法(RocketMQ)
    Redis系列 需要注意事项
    .NET:在线悲观锁、在线乐观锁、离线悲观锁、离线乐观锁代码示例
    C# 简单介绍Redis使用
    API Get跟Post 的区别?
  • 原文地址:https://www.cnblogs.com/dyj057/p/9020570.html
Copyright © 2011-2022 走看看