打开与命令提示符的工作目录关联的文件夹?

E.S*_*.S. 9 windows windows-explorer command-line cmd.exe

我想知道是否有一个命令可以输入到 Windows 命令提示符中,它会导致 Windows 资源管理器打开一个设置在命令提示符当前工作目录中的文件夹?

(This is kind of the opposite problem where people want to open the Command Prompt from the folder. I.e., opposite of this: How can I open a command prompt in current folder with a keyboard shortcut?)

Sco*_*hee 33

explorer . 
Run Code Online (Sandbox Code Playgroud)

This is what I use.

start . 
Run Code Online (Sandbox Code Playgroud)

Perhaps the shortest.

  • 我知道 OP _explicitly_ 在帖子(和标签)中要求使用 DOS 和 Windows 资源管理器。但是对于像我这样因为帖子标题很有趣而点击的与平台无关的人来说,对于大多数 GNU/Linux 来说是 `xdg-open .`,对于 OS X 来说是 `open .`。Mac 上 `open` 的手册页有很多还有其他有用的选项(我一直使用`-a`)。 (9认同)

Art*_*hur 9

explorer %cd%
Run Code Online (Sandbox Code Playgroud)

Should do it. %cd% will always print the current directory.


归档时间:

查看次数:

819 次

最近记录:

11 年 前