Get the selected file in an Explorer window
Posted
by Jon Fournier
on Stack Overflow
See other posts from Stack Overflow
or by Jon Fournier
Published on 2010-03-25T18:17:58Z
Indexed on
2010/03/29
17:43 UTC
Read the original article
Hit count: 168
windowsexplorer
|winapi
I'd like to know how, if possible, to get the path of the selected file in an open Windows Explorer window. If not, would it at least be possible to get the folder path of an open Windows Explorer window?
The end reason I'm doing this, is a software tool I'm writing requires a user to select a file. I figure if they're already moving the file around with Windows Explorer and then start my tool up, it'd be good not to have to make them navigate to the folder again in the file open dialog box. My software would then be able to identify if it's got the right file extension and if so, just ask the user if they want to import that file.
Thanks.
© Stack Overflow or respective owner