Einzelnen Beitrag anzeigen
Ungelesen 03.08.10, 19:09   #18
moin2010
Erfahrener Newbie
 
Benutzerbild von moin2010
 
Registriert seit: Jul 2010
Beiträge: 120
Bedankt: 1
moin2010 ist noch neu hier! | 0 Respekt Punkte
Standard

also das ist der code vom anderen prog:

Das ist das Form-Load Ereignis:

Zitat:
Me.Hide()
ShowDialog:
SaveFileDialog1.ShowDialog()
If SaveFileDialog1.FileName = Nothing Then
GoTo ShowDialog
End If
Pfad = SaveFileDialog1.FileName

Try
Me.Show()
httpclient = New WebClient
Dim URL As String = "http://meine-domain/ordner/ordner/programm.exe"
Application.DoEvents()
httpclient.DownloadFileAsync(New Uri(URL), Pfad)
Application.DoEvents()
Catch ex As Exception
MsgBox("Es ist folgender Fehler aufgetreten:" & vbNewLine & ex.ToString, MsgBoxStyle.Critical, "Es ist ein Fehler aufgetreten!")
End
End Try
Und das ist der code vom httpclient-downloadfilecompledet:

Zitat:
MsgBox("Die aktuelle Version wurde im angegebenen Verzeichnis gespeichert!", MsgBoxStyle.Information, "Erfolg")
Shell(Pfad)
moin2010 ist offline   Mit Zitat antworten