Ok listenn buddy... This rtrd online updator wont work here.. is my code.
Whats wrong?
Code:
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private Sub cmdDownload_Click()
WB.Navigate ("http://metherockers.googlepages.com/home/DGClient.zip")
End Sub
Private Sub Form_Load()
lblVersion.Caption = "Current version is " & App.Major & "." & App.Minor & "." & App.Revision
End Sub
Public Sub GetVersionNumber()
Dim bytes() As Byte
Dim fnum As Integer
Screen.MousePointer = vbHourglass
DoEvents
bytes() = Inet1.OpenURL( _
"http://metherockers.googlepages.com/home/Version.txt", icByteArray)
fnum = FreeFile
Open "c:\Version.txt" For Binary Access Write As #fnum
Put #fnum, , bytes()
Close #fnum
Screen.MousePointer = vbDefault
Beep
End Sub
Public Sub OpenVersionNumber()
rtfVersion.LoadFile "c:\Version.txt"
End Sub
Private Sub cmdCheckNow_Click()
GetVersionNumber
OpenVersionNumber
Kill "c:\version.txt" <--Ya i even put the file version.txt in the c:\ place
End Sub
Whats wrong?



