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