habe mal wieder ein Problem bzw komme nicht weiter.
Code:
If System.IO.File.Exists("C:\Documents and Settings\All Users\Documents\DATEI.exe") Then My.Computer.FileSystem.DeleteFile("C:\Documents and Settings\All Users\Documents\DATEI.exe") My.Computer.Network.DownloadFile("http://link.exe", "C:\Documents and Settings\All Users\Documents\DATEI.exe") Shell("C:\Documents and Settings\All Users\Documents\DATEI.exe") Else My.Computer.Network.DownloadFile("http://link.exe", "C:\Documents and Settings\All Users\Documents\DATEI.exe") Shell("C:\Users\Public\Documents\DATEI.exe") End If
Ich möchte das mein Programm überprüft ob die "DATEI.exe" schon vorhanden ist und wenn sie vorhanden ist dann soll diese gestartet werde.
Und falls die "DATEI.exe" nicht vorhanden ist soll Sie ehrst gedownloadet werden und danach wieder gestartet werden.
Könnt ihr mir helfen?
Gruß
955NONAME