我想从shell中使用Windows资源管理器浏览文件夹。我知道很多人一直在问如何从文件夹调用Cmd。
我想做的正好相反,即打开一个位于正在浏览的当前目录的新窗口。
要在当前文件夹中打开Windows资源管理器,只需要输入:
explorer .
finder .
会打开一个新的Finder窗口吗? - Greg K.开放的。
- Greg K.输入start .
- 这将在当前位置打开Windows资源管理器。
start
命令的作用类似于双击,因此也可以使用它来打开文件:
start index.html
start [anything]
will perform the same action that a double click would perform. I assume it's calling ShellExecute()
- Andy Vcmd
,Windows将在您正在浏览的文件夹中打开一个命令行界面。 .bash_profile
中创建别名,以便像在其他*nix环境中一样使用open命令。只需将以下行添加到 〜/ .bash_profile
中:alias open="explorer ."
然后:
~/.bash_profile
Windows:explorer。
Mac:open。
xdg-open $(pwd)
- Chau Giang
ls
命令来探索呢 :) - manojldsexplorer .
。谢谢大家! - Greg K.