473,473 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Interogating Quick Launch Items

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.GetEnvironmentVari able(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
Nov 17 '05 #1
3 2608
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 Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Martin Dew" <ma********@adastra.co.uk> wrote in message
news:12******************************@40tude.net.. .
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.GetEnvironmentVari able(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

Nov 17 '05 #2
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
On Fri, 16 Sep 2005 11:38:20 -0400, Nicholas Paldino [.NET/C# MVP] wrote:
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.

--
Martin Dew
Senior Developer
Nov 17 '05 #3
Martin,
One question that remains, how can I get the image from the lnk


I have some code here that does that

http://www.msjogren.net/dotnet/eng/s..._shelllink.asp
You also have a problem in your code. The following

foreach(FileInfo file in fileList) {

will throw if there are any subdirectories in the Quick Launch
directory. Better make 'file' a FileSystemInfo and then check if it's
actually a FileInfo or not.
Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Dutchy | last post by:
Dear reader, In an attempt to obtain the path to the quick-launch-folder in order to create a shortcut to my application-updates during installation , I thought to: 1- check if quick launch...
3
by: Mauro | last post by:
How can i resize (autoSize) the Quick Launch Toolbar? I try to send TB_AUTOSIZE Message to it but doesn't work. :-( Thx. Mauro. -- Questa è una firma automatica di MesNews. Sito:...
6
by: gizmo | last post by:
I have a requirement to initiate more than one instance of an application using the filenames. (the example below will start two instances of MS Word). My problem is that I need to kill each...
5
by: neehakale | last post by:
I know that heap sort,quick sort and merg sort are the faster sorting algoritms than the bubble sort,selection sort,shell sort and selection sort. I got an idea,in which situation we can use...
0
by: =?Utf-8?B?R2FyeSBNY0M=?= | last post by:
The quick launch tool bar doesn't load on startup in my user account. It works fine by clicking on the Task bar and selecting Quick Launch, but it doesn't seem to save the setting when I shut down...
1
by: =?Utf-8?B?Q0o=?= | last post by:
I have a lot of icons on Quick Launch, and therefore have it doubled in height ... I just added another icon and the double height stayed but all of the icons lined up in a single row and went to...
1
by: =?Utf-8?B?Tmljaw==?= | last post by:
I do not know what started this, but my quick launch and start menu disappear after one second, and I can't click on anything.I tried system restore to before this started, but it keeps failing and...
5
by: goldstar | last post by:
Hello All, Just got a quick query well im hoping it is a quick one! What i am trying to do is update records with an item table when it is removed. At the moment what is happening is if i have...
2
by: RLN | last post by:
I was at this link to add a menu bar to my Access app. http://office.microsoft.com/en-s/access/HP051890341033.aspx I got the menu bar added, but had some more questions about it. In the link...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.