Link to home
Start Free TrialLog in
Avatar of penz
penz

asked on

Programatically reading and writing Windows Shortcuts

Is it possible to read the destination of a windows shortcut programatically.

eg link = fopen("myDoc.lnk", "r");
then read a string containing the shortcut destination from the file to give me C:\myDocs\myDoc.Doc.

From what I have seen *.lnk files are binary, not text, hence my question.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of penz
penz

ASKER

Thanks for the quick answer
You're most welcome :o)