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:
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:
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.
- 0useful
- 0not useful
#3. Posted:
Status: Offline
Joined: Oct 02, 201112Year Member
Posts: 875
Reputation Power: 36
It worked thanks =D!!!!
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.