How to Use a Win API at the Command Line to Get a Selected File in Windows Explorer
- 1). Click the Windows "Start" button.
- 2). Type the command below, without quotes, into the Search input box. For users of previous versions of Windows, click "Run" and type the command in the "Open" input box. Change "c:\Test.txt" to the path and file name of the file to select in Windows Explorer.
"explorer.exe /select,c:\Test.txt" - 3). Click the "Search" button or press the "Enter" key to execute the command. The Windows Explorer interface will launch and the specified file will be highlighted in the right navigation pane.
Source...