Internet Shortcut

Started by George Vagenas, November 13, 2014, 10:53:11 AM

Previous topic - Next topic

George Vagenas

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.
Thanks

George

George Vagenas

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.
Thanks

George

td

If I remember correctly, the .url files are just .ini files so maybe give 'IniReadPvt' a try. It might even work.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

George Vagenas

You recall correctly.
Code (winbatch) Select
Url = inireadpvt('InternetShortcut', 'URL', 'N/A', "C:\Users\George\Favorites\Links\TVRage\Covert Affairs.URL")
Thanks

George