You are viewing our Forum Archives. To view or take place in current topics click here.
VB 2010 help +Rep
Posted:

VB 2010 help +RepPosted:

Moxi
  • TTG Master
Status: Offline
Joined: Oct 02, 201112Year Member
Posts: 875
Reputation Power: 36
Status: Offline
Joined: Oct 02, 201112Year Member
Posts: 875
Reputation Power: 36
So I'm in need of a code that basically see if a certain file is in the location and if not it downloads it then opens it the next time you click it
#2. Posted:
WhutizCod
  • Junior Member
Status: Offline
Joined: Dec 03, 201013Year Member
Posts: 68
Reputation Power: 2
Status: Offline
Joined: Dec 03, 201013Year Member
Posts: 68
Reputation Power: 2

   Try
            If System.IO.File.Exists("File Location") Then
                MsgBox("The file Exists!")
            Else
                Dim WC As New System.Net.WebClient
                WC.DownloadFile("Direct link to the file", "Location to download file")

            End If
        Catch ex As Exception

        End Try


If you need any other help, just ask.
#3. Posted:
Moxi
  • TTG Master
Status: Offline
Joined: Oct 02, 201112Year Member
Posts: 875
Reputation Power: 36
Status: Offline
Joined: Oct 02, 201112Year Member
Posts: 875
Reputation Power: 36
It worked thanks =D!!!!
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.