vb.net - My VB project fails to download an exe file -


I have an update dialog and when the "Direct Download" button is pressed, download it from the dropbox location to an XI file Is used for However, now it does not download the file anymore, and this file is to start after downloading, but it says: The file was not found.

The code is:

  String = Environment such as the DEMAm temp Gatefolder Path (Environmental specialfolder, localAppectionData) & amp; "\ Temp" Try.my.Computer.FileSystem.DeleteFile (TempPath and "\ animeygocardmaker.exe") My.Computer.Network.DownloadFile ("https://dl.dropboxusercontent.com/u/72383434/animeygocardmaker.exe" Hold an exception MsgBox ("An error occurred while trying to download the file"), TempPath and "\ animeygocardmaker.exe"). Try System.Diagnostics.Process.Start (TempPath and "\ animeygocardmaker.exe") Dim Close Close AllWindows as New CloseAll Form1.Pause () CloseAllWindows.CloseAll ()   

And like I said It was always used to work. What could be the problem that it takes more time to download the file?

  slow temp path string = environment Gatefolder Path (Environmental Specific Folder. LocalApplicationData) & amp; Try "\ Temp" My.Computer.Network.DownloadFile ("https://dl.dropboxusercontent.com/u/72383434/animeygocardmaker.exe", TampaPath and "AnimegocardMaker.exe") system. Diagnostics Process. Start (TempPath and "\ animeygocardmaker.exe") Dim CloseAllWindows New CloseAll Form1.Pause () An exception MsgBox ("An error occurred while trying to download the file" + ex.ToString) Try end allWindows.CloseAll () < / Code>   

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -