Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / September 2004

Tip: Looking for answers? Try searching our database.

How to get URL adress from "My favorites" files ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Przemek - 03 Sep 2004 16:29 GMT
Hi.
I'd like to get URL from any link file placed in "My Favorites" web browser
folder (as I see - that's shortcut files). How can I do it?
Thanks for wrote, nice sunny day with no work:).
Imran Koradia - 03 Sep 2004 16:44 GMT
http://codeproject.com/cs/miscctrl/favoritescontrol.asp

hope that helps..
Imran.

> Hi.
> I'd like to get URL from any link file placed in "My Favorites" web browser
> folder (as I see - that's shortcut files). How can I do it?
> Thanks for wrote, nice sunny day with no work:).
Przemek - 04 Sep 2004 11:32 GMT
Still nothing - I can't do it.
There is a TreeView control in this example and author using Tag property -
I have no control and - no tag. All I have is path to file selected from
OpenFileDialog.
Hov can I get chosen file URL?
Thanx for example and wrote.
vbphil - 23 Sep 2004 17:47 GMT
For vb.net I use this

set a reference to Windows Script Host Object Model which is in
c:\winnt\system32\wshom.ocx

Imports wsh = IWshRuntimeLibrary

Dim wshShell As New wsh.WshShell
Dim urlShortcut As wsh.WshURLShortcut
dim myURL, sPath as string

'sPath is the favorite's filename with path

urlShortcut = CType(wshShell.CreateShortcut(sPath), wsh.WshURLShortcut)
myURL = urlShortcut.TargetPath

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.