1.通过批处理命令,CMD到bat文件所在的路径下

cmdhere.bat:

@echo off
cmd .

  

2.更方便地一种方法是写进注册表里,直接右键可以cmd到当前路径下

cmdhere.reg(要先运行的哦)

REGEDIT4

[HKEY_CLASSES_ROOT\*\shell\cmdhere]
@="Cmd&Here"

[HKEY_CLASSES_ROOT\*\shell\cmdhere\command]
@="cmd.exe /c start cmd.exe /k pushd \"%L\\..\""

[HKEY_CLASSES_ROOT\Folder\shell\cmdhere]
@="Cmd&Here"

[HKEY_CLASSES_ROOT\Folder\shell\cmdhere\command]
@="cmd.exe /c start cmd.exe /k pushd \"%L\""

 注意:需要选中一个文件,再右键,才会出现CmdHere哦

欢迎光临娇娇家的美衣阁 http://shop105984718.taobao.com/

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
  • 2021-12-29
  • 2021-11-04
  • 2022-12-23
  • 2021-12-03
猜你喜欢
  • 2021-07-16
  • 2021-08-10
  • 2022-12-23
  • 2021-08-02
  • 2021-08-23
  • 2021-12-28
  • 2021-09-14
相关资源
相似解决方案