Interogating Quick Launch Items

  • Thread starter Thread starter Martin Dew
  • Start date Start date
M

Martin Dew

hi, I want to interogate the Quick Launch folder, looking at each icon and
getting the image, and target that it fires when clicked. I can get to the
folder and create a filelist of the icons, but cannot seem to find where to
go from there, can anyone help ?

[code I have so far]

string dirPath =
Path.Combine(System.Environment.GetEnvironmentVariable(Environment.SpecialFolder.ApplicationData),@"Microsoft\Internet
Explorer\Quick Launch");
DirectoryInfo inDirectory = new DirectoryInfo(dirPath);
if (inDirectory.Exists) {
FileSystemInfo[] fileList = inDirectory.GetFileSystemInfos("*.*");
foreach(FileInfo file in fileList) {

}
}

any help is much appreciated.

Regards
Martin
 
Martin,

Anything in the quick watch folder is just executed when clicked. You
should be able to pass the file path from the folder to the Process class,
and it should execute the action that is performed when you click it.

Hope this helps.
 
Nicholas, thank you for the help, so if I simply call Process.Start with
the .lnk path it should cause windows to run the .lnk file as if I had
cliked it.

One question that remains, how can I get the image from the lnk to be able
use it in my own created shortcuts ?

Thanks
 

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