How would you go about downloading/calling up an ini off of a web site or IP? Your answers are greatly appreciated (sounds kinda like a commercial)!
Printable View
How would you go about downloading/calling up an ini off of a web site or IP? Your answers are greatly appreciated (sounds kinda like a commercial)!
Give some more details .
You could use the Inet or winsock controls!
here is an inet example (not a very good one though)
Code:Dim intMyVersion As Integer
Dim b() As Byte
Dim intRemoteVer As Integer
Dim strRemoteVer As String
Dim cFile As String
'Make cFile the URL of where to check for updates
cFile = "http://www.fortunecity.com/skyscraper/macro/1125/CurVersion.dat"
Screen.MousePointer = 11
Inet1.RequestTimeout = 5
b() = Inet1.OpenURL(cFile, 1)
intMyVersion = CInt(App.Major & App.Minor & App.Revision)
strRemoteVer = ""
Dim t
For t = 0 To UBound(b)
strRemoteVer = strRemoteVer + Chr(b(t))
Next