a bookmarks file reader
Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
5 posts
Page 1 of 1
Hi , i want to create a system to import all the internet explorer bookmarks automaticly in one of my next service but i dont know hot to really get the good string for the URL and the string with the name
here is an example of bookmarks file content :
[DEFAULT]
BASEURL=http://www.codenstuff.com/forum/home.php
[InternetShortcut]
URL=http://www.codenstuff.com/forum/home.php
Modified=E0B4FE5C952FCB017E
IconFile=http://www.codenstuff.com/favicon.ico
IconIndex=1
the strings i want to extract is the string with the URL and the iconFile string and the title of the file.
thanks in advance for your help
have a nice day !
here is an example of bookmarks file content :
[DEFAULT]
BASEURL=http://www.codenstuff.com/forum/home.php
[InternetShortcut]
URL=http://www.codenstuff.com/forum/home.php
Modified=E0B4FE5C952FCB017E
IconFile=http://www.codenstuff.com/favicon.ico
IconIndex=1
the strings i want to extract is the string with the URL and the iconFile string and the title of the file.
thanks in advance for your help
have a nice day !
admin@adosrv.net
Owner of ado-srv.net softwares network.
Owner of ado-srv.net softwares network.
Since a URL shortcut is just a text file you can use this to search through the lines:
Code: Select all
Dim lines As String() = File.ReadAllLines("link.url")
Dim url As String = ""
Dim ico As String = ""
For i As Integer = 0 To lines.Length - 1
If lines(i).StartsWith("BASEURL=") Then
url = lines(i).Remove(0, 8)
ElseIf lines(i).StartsWith("IconFile=") Then
ico = lines(i).Remove(0, 9)
End If
Next
MsgBox("URL is: " & url)
MsgBox("Icon is: " & ico)
5 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023