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:).

Re: How to get URL adress from "My favorites" files ? by Imran

Imran
Fri Sep 03 10:44:13 CDT 2004

http://codeproject.com/cs/miscctrl/favoritescontrol.asp

hope that helps..
Imran.

"Przemek" <reference@interia.pl> wrote in message
news:cha2dr$p2e$1@atlantis.news.tpi.pl...
> 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:).
>
>



Re: How to get URL adress from "My favorites" files ? by Przemek

Przemek
Sat Sep 04 05:32:09 CDT 2004

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.



RE: How to get URL adress from "My favorites" files ? by vb

vb
Thu Sep 23 11:47:10 CDT 2004

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