How to play "Show in Folder" / "Find Target" via C #

When using Chrome, if you download a file, you can select the option (Show in folder), which will open the containing directory and highlight the file. Similarly, if you look at the properties of the shortcut, you can select the "Find Target" button for the same function. I tried numerous searches, and also looked through the decent parts of the MSDN entry in shell functions , but to no avail. I assume this is just a simple API call or its series, but I do not find it.

+4
source share
2 answers

At least you can do this by calling "explorer.exe / select, C: \ path \ to \ file". I am not sure if there is an equivalent API call.

[edit] Here is a Microsoft KB article on the command line explorer

+7
source

Here's an article that shows how to programmatically select files: Windows Explorer wildcard shell extension

+1
source

All Articles