473,778 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
+ 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(Sy stem.Environmen t.GetEnvironmen tVariable(Envir onment.SpecialF older.Applicati onData),@"Micro soft\Internet
Explorer\Quick Launch");
DirectoryInfo inDirectory = new DirectoryInfo(d irPath);
if (inDirectory.Ex ists) {
FileSystemInfo[] fileList = inDirectory.Get FileSystemInfos ("*.*");
foreach(FileInf o file in fileList) {

}
}

any help is much appreciated.

Regards
Martin
Nov 17 '05 #1
3 2632
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.co m

"Martin Dew" <ma********@ada stra.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(Sy stem.Environmen t.GetEnvironmen tVariable(Envir onment.SpecialF older.Applicati onData),@"Micro soft\Internet
Explorer\Quick Launch");
DirectoryInfo inDirectory = new DirectoryInfo(d irPath);
if (inDirectory.Ex ists) {
FileSystemInfo[] fileList = inDirectory.Get FileSystemInfos ("*.*");
foreach(FileInf o 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(FileInf o 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
5377
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 is used by the user 2- check if a link to my application is there 3- if so, obtain the path (ANY PATH) to the quick-launch-folder from existing button(s)
3
3064
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: http://mesnews.no-ip.com
6
2188
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 instance individually, but this does not appear possible using the Process object. When I run the example below the process object "p" can be viewed using Quick Watch however process object p2 is displayed as undefined, with the added affect of not...
5
16637
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 bubble sort(use when we have to 100 items: bubble sort is effective),shell sort is effective when one has to sort near abt 5000 items..selection sort is effective for sorting 1000 items...and more than 1000 and less than 5000 items if u have to sort use...
0
1481
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 the computer. I have two other user accounts on the same computer and they work fine and launch on startup. Any ideas why this is happening? This occured after I installed and ran PC Tools Spyware Doctor but I can't see any reference to it in...
1
1344
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 the left of the slider bar thingie ... Any recommendations on how to fix ...??? Thanks much ... CJ
1
2096
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 not working, this is VERY annoying, I can't open any of my programs! I have to use the computer shortcut on my desktop and search the hard drive for the .exe of my programs. Cany anyone help me with this???? P.S. I am using Vista hp.
5
1539
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 say 10 items and the remove button is pressed it is deleting all the records within that hire , which is fine, I can also get it to update the first item within the listbox. But it does update the other items that were within the listbox. I know...
2
6999
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 above, there was mention of assigning it as the "Global menu" bar, but it does not indicate how to specify a custom menu bar as the global bar. Any idea how to do this?
0
9629
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9465
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10127
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10068
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9923
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8954
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7474
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5370
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4031
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 we have to send another system

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.