Open and Select a file in an existing Explorer window

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Yaron
Posts: 14
Joined: 02 Apr 2014 21:48

Open and Select a file in an existing Explorer window

#1 Post by Yaron » 06 Jul 2017 13:47

Hello,

I'd like to open and select a file in an existing Explorer window from the command line.

Code: Select all

explorer.exe /select, "FILE_PATH"

Opens a new window.

Code: Select all

cmd.exe /c start "" "FILE_PATH"

Runs the file.

Is it possible to use

Code: Select all

cmd.exe /c start "" "FOLDER_PATH"

and then select a specific file?

I'd appreciate your help.


https://superuser.com/questions/1226136 ... rer-window

Post Reply