How do I open an Explorer window in a given directory from cmd.exe?

Viewed 65340

I see how to launch many other programs from a batch file, but I can't find a command like open on Mac OS X. Does such a tool exist on Windows? Powershell, or a Windows API call from an executable would also work.

Or, put another way, how can I invoke Windows default "Open" handler for a file from a batch file or powershell script?

5 Answers

You can just try

start .

This will open file explorer directly with the current directory path.

"explorer.exe ." worked for me.

explorer.exe .

IMO - As we need to open "Windows Explorer" from cmd prompt, "explorer.exe ." is easy to remember.

You can try this syntax:

explorer.exe folder_path

example:

explorer.exe D:\Movies
Related