B2Ben
Well-known member
- Joined
- Aug 17, 2006
- Messages
- 52
- Programming Experience
- Beginner
Hey all -
I'm trying to make my application more robust by allowing files to be dragged-and-dropped onto the executable, thus opening the dropped files when the program launches.
This is working well so far. I'm getting the file path(s) from the command line arguments and processing them.
The problem comes with windows shortcuts... the ".lnk" files. If I drag a shortcut to a file onto my un-launched app, the path I get is the path of the shortcut file (c:\somefolder\someshortcut.lnk)
It seems to me that there should be some simple function in the framework to help me translate this into the path of the linked file, but I'm having trouble finding it. Web/forum searches haven't turned up much either.
Any help would be appreciated. Thanks.
I'm trying to make my application more robust by allowing files to be dragged-and-dropped onto the executable, thus opening the dropped files when the program launches.
This is working well so far. I'm getting the file path(s) from the command line arguments and processing them.
The problem comes with windows shortcuts... the ".lnk" files. If I drag a shortcut to a file onto my un-launched app, the path I get is the path of the shortcut file (c:\somefolder\someshortcut.lnk)
It seems to me that there should be some simple function in the framework to help me translate this into the path of the linked file, but I'm having trouble finding it. Web/forum searches haven't turned up much either.
Any help would be appreciated. Thanks.