Is it possible to obtain complete path name using mouse click i.e when i click on a file say file.txt on c:\ i shld get the result as c:\file.txt. Or say if i have opened the file and the file is my active window how to get the path of this file. Please give some idea on which api to use and how ?

Please help i am struck with this ....

thank you

6 Years
Discussion Span
Last Post by Ancient Dragon

You can start here.

Thx .... the solution works if i know the filename,..... in my scenario i dont know what the file name.... i just click on file highlighting it, i shld get the complete path and read the contents of it .... the user can click on any file .... so my application shld dynamically get the file name ...

Edited by manugm_1987: n/a


in my scenario i dont know what the file name....

Of course you know the file name, how else are you displaying it and highlighting it?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.