Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with shortcuts and drag and drop
Message
 
 
To
27/10/2005 05:27:49
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01062541
Message ID:
01062574
Views:
10
This message has been marked as the solution to the initial question of the thread.
>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--
Previous
Reply
Map
View

Click here to load this message in the networking platform