In my existing program, after completing some result I store it in a file.
I have the file(folder) path saved in a string var,
I am seeking a way to open the same folder (not file directly) and in that explorer window, particular file must be selected!
so that user can come to know which file has been created by the code.
Asked
Active
Viewed 1,167 times
1

Fyodor Soikin
- 78,590
- 9
- 125
- 172

Rookie Programmer Aravind
- 11,952
- 23
- 81
- 114
-
1possible duplicate of [C#, Open Folder and Select the file](http://stackoverflow.com/questions/334630/c-open-folder-and-select-the-file) – SwDevMan81 May 02 '11 at 11:27
2 Answers
3
This is what you are looking for.
You pass explorer.exe /select, filename
Opening a folder in explorer and selecting a file
Here are some more command line options for explorer.exe

Community
- 1
- 1

Ranhiru Jude Cooray
- 19,542
- 20
- 83
- 128