By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,827 Members | 2,155 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,827 IT Pros & Developers. It's quick & easy.

How to retrive target file from a shorcut icon using C#

P: n/a
How do I get the file path(target file) of a short-cut
icon if I'm writing my application in C#.

Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
John,

You will want to take a look at the section of the MSDN documentation
titled "Shell Links", located at (watch for line wrap):

http://msdn.microsoft.com/library/de...s/shortcut.asp

In it, there is a section titled "Using Shell Links". There is an
example in C++ that can be converted to .NET (using COM interop) which you
can use to resolve the path that a shell link points to.

Also, you should be able to set a reference to shell32.dll and use the
ShellLinkObject to do the same thing.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"John" <wi********@hotmail.com> wrote in message
news:03****************************@phx.gbl...
How do I get the file path(target file) of a short-cut
icon if I'm writing my application in C#.

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.