Looking at shortcut properties

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a class within C# that reveals the properties of a typical shortcut
on the desktop?

I'm looking for the information about the "Target" and "Start in" fields
within a shortcut.
 
Steve,

There are two ways to go about this. The first is to use the classes in
the System.Management namespace and find the instance of the
Win32_ShortCutfile WMI class that corresponds to your link.

The other is to use the IShellLink interface and load the link
information yourself. Here is a link to a thread which details the
operation (watch for line wrap):

http://groups.google.com/group/micr...anguages.csharp&rnum=2&hl=en#2ae386e97de2a026

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top