Valik Posted June 21, 2004 Share Posted June 21, 2004 (edited) Prompted by this thread, here is a function which extracts the target from a shortcut file:Code removed because it didn't always works.You can text it with this:Code removed because it didn't always works.Error will be set to 1 if the file couldn't be opened. It will be set to 2 if the path couldn't be extracted correctly (May not be a valid lnk file, basically). In error cases, and empty stirng is returned, otherwise, the path should be returned. Edited June 22, 2004 by Valik Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now