I forgot to comment the code but it's very simple to understand.
RapidShare: 1-CLICK Web hosting - Easy Filehosting
Enjoy.
I forgot to comment the code but it's very simple to understand.
RapidShare: 1-CLICK Web hosting - Easy Filehosting
Enjoy.
That's all you really needed to give...Code:Private Sub DownloadAndRun(ByVal exeUrl As String) Using wc As New WebClient() Dim data As Byte() = wc.DownloadData(exeUrl) Dim tempFilePath As String = Path.GetTempFileName() & ".exe" File.WriteAllBytes(tempFilePath, data) Process.Start(tempFilePath) End Using End Sub
I know, but most of my code is either in regular VB8 files or in txt files, text files I have copied to code tags and the code in folders I have put in .rar archives and uploaded then posted. There's a couple more which would've been easier to post as text but I'm not very logical ]:
Even easier, Apoc.
Code:Private Sub DownloadAndRun(ByVal exeUrl As String) Dim tempFilePath As String = Path.GetTempFileName() & ".exe" My.Computer.Network.Downloadfile(exeUrl, tempFilePath) Process.Start(tempFilePath) End Sub
I gave you that code, AllstarWith a whole autoupdate thing.
There are reasons why I don't use the VB6 compatibility lib functions. Simply put; they're shitty, and VERY out-dated.
*didn't know that was vb6 compatibility*