>Our application allows a user to drag and drop a file onto a form to associate the file with a record. We have found that they are often doing that with shortcuts (.lnk) files. Does any one know of a way to resolve these shortcuts back to the original file?
>
>I have looked at the contents of the lnk file in a hex editor, but the actual location of the file path seems to vary, especially according to whether the original file is on a network share or a local drive.
If WSH is an option
oShell = createobject("WScript.Shell")
oShortCut = oShell.CreateShortcut(lcShortcutFileName)
? oShortCut.TargetPath
--sb--