WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: George Vagenas on November 13, 2014, 10:53:11 AM

Title: Internet Shortcut
Post by: George Vagenas on November 13, 2014, 10:53:11 AM
I have a folder which contains some URLs and I want to compare them to a list of Firefox bookmarks. 
e.g. The Web document property for "Covert Affairs.URL" points to "http://www.tvrage.com/Covert_Affairs/episode_list/all".  Not sure if there is a way to access this with Winbatch.
Title: Re: Internet Shortcut
Post by: George Vagenas on November 13, 2014, 02:43:08 PM
Got it.  Just thought I'd see what FileGet had to say about the file.
Code (winbatch) Select
info = fileget("C:\Users\George\Favorites\Links\TVRage\Covert Affairs.URL")
Rtn = strreplace(Info, @crlf, @tab)
BkMark = itemextract(2, itemextract(2, Rtn, @tab), '=')
clipput(BkMark)
pause(`DEBUG PAUSE`, strCat(`BkMark = `, BkMark))   ;***DEBUG LINE***
:cancel
return

From there it was just a matter of parsing the returned value for the info I wanted.
Title: Re: Internet Shortcut
Post by: td on November 13, 2014, 02:53:57 PM
If I remember correctly, the .url files are just .ini files so maybe give 'IniReadPvt' a try. It might even work.
Title: Re: Internet Shortcut
Post by: George Vagenas on November 14, 2014, 02:31:16 AM
You recall correctly.
Code (winbatch) Select
Url = inireadpvt('InternetShortcut', 'URL', 'N/A', "C:\Users\George\Favorites\Links\TVRage\Covert Affairs.URL")