When using Chrome, if you download a file you can then choose an option (Show in Folder) which will open the containing directory and highlight the file. Similarly, if you view the properties of a shortcut you can choose the "Find Target" button for that same functionality. I have tried numerous searches, as well as looking over a decent portions of the MSDN entry on Shell Functions, but to no avail. I assume it's just a simple API call, or series thereof, but I'm not finding it.
At the very least, you can do that by invoking "explorer.exe /select,C:\path\to\file". I'm not sure if there is an equivalent API call.
[edit] Here's the Microsoft KB article on Explorer command line switches
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With