CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Jun 2010

    [RESOLVED] How to resolve symbolic file system links

    I have written a small app that deals with files of any kind. So far, I can pick the file to process using a file open dialog or drop it on the app's Form. Everything basically works fine, but while the dialog resolves symbolic links (.lnk files) for me implicitly (after setting the appropriate property, of course), my app will process the .lnk file itself rather than the file it points to when I drop it on the app.

    So I'll have to resolve the link myself in that case. But how would I do that the .NET way? Neither an MSDN search nor Google gave me any satisfying results so far.

    I once did the same thing in an MFC app a long time ago and I remember I had to employ some COM stuff for that, and found that unnecessarily complicated. I suppose there is another way to do that with the CLR. If not, I would appreciate a pointer to some description an how to do it the old-fashioned way too, but please including instructions on how to use that COM stuff from the .NET environment.

    Last edited by Eri523; October 6th, 2010 at 12:17 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.