zoukankan      html  css  js  c++  java
  • Win10在当前目录快速打开cmd的方法

    方法一:

    1.按住Shift键,鼠标右键快捷方式,先打开Powershell窗口

    2.输入 start cmd 回车

    3.这样就可以打开cmd窗口了,并且cmd的工作目录就是当前的目录

    方法二:

     1.新建一个txt文档文件,在里面输入以下内容:

    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOTDirectoryshellOpenCmdHere]

    @="在此处打开命令提示符"

    "Icon"="cmd.exe"

    [HKEY_CLASSES_ROOTDirectoryshellOpenCmdHerecommand]

    @="PowerShell -windowstyle hidden -Command "Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs""

    [HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenCmdHere]

    @="在此处打开命令窗口"

    "Icon"="cmd.exe"

    [HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenCmdHerecommand]

    @="PowerShell -windowstyle hidden -Command "Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs""

    [HKEY_CLASSES_ROOTDriveshellOpenCmdHere]

    @="在此处打开命令窗口"

    "Icon"="cmd.exe"

    [HKEY_CLASSES_ROOTDriveshellOpenCmdHerecommand]

    @="PowerShell -windowstyle hidden -Command "Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs""

    [HKEY_CLASSES_ROOTLibraryFolderackgroundshellOpenCmdHere]

    @="在此处打开命令窗口"

    "Icon"="cmd.exe"

    [HKEY_CLASSES_ROOTLibraryFolderackgroundshellOpenCmdHerecommand]

    @="PowerShell -windowstyle hidden -Command "Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs""


    2.保存后,把后缀名改成reg格式
    3.这样就变成了注册表的形式,最后,双击,点击确认
     
    这样就完成了
     
    在任意文件夹下点击,出现的就是当前的目录
     
    虽然方法二的第一次操作可能比方法一稍微多一点,但本着能简单就简单的心态,为了以后方便还是推荐用方法二
  • 相关阅读:
    【CYH-02】noip2018数论模拟赛:赛后题解
    C语言 malloc函数
    C 库函数
    C语言strcmp()函数:比较两个字符串
    C语言sprintf函数的深入理解
    C语言strcat()函数:字符串连接(拼接)
    liunx 中设置zookeeper 自启动(service zookeeper does not support chkconfig)
    页面上出现403错误,并解决
    Mac 下安装nginx
    nginx: [emerg] unknown directive "," in /usr/local/etc/nginx/nginx.conf:80
  • 原文地址:https://www.cnblogs.com/yizhilin/p/12975052.html
Copyright © 2011-2022 走看看