cmd / msys2 添加到右菜单

1. 打开注册表

转到 计算机\HKEY_CLASSES_ROOT\Directory\Background\shell\

2. 新建项 Cmd Here (名称随意)

在 Cmd Here 里新建

 

 

 

 

icon是 图标。

3. 在 Cmd Here 下, 新建项 command (必须为command)

将 command 的默认值改为 "C:\Windows\System32\cmd.exe" "--working-dir" "%v."

 

msys2 同理, 不过 msys2 的 command 参数为:

C:\msys64\msys2_shell.cmd -mingw64 -here

 

posted @ 2020-04-11 18:50  北爱荒凉  阅读(281)  评论(0编辑  收藏  举报