webclient.downloaddata

Rothariger

Regular
Joined
Apr 7, 2004
Messages
66
hello i have this code, i download .eps from brandsoftheworld with a net.webclient.DownloadFile its a easy way of knowing the name of the file?

Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim i As Long
        Dim x As New Net.WebClient
        ProgressBar1.Minimum = desde.Text
        ProgressBar1.Maximum = hasta.Text
        For i = desde.Text To hasta.Text
            Try
                x.DownloadFile("http://web.brandsoftheworld.com/download/?id=" & i, "c:\" & i & ".eps")
                ProgressBar1.Value = i
            Catch ex As Exception

            End Try
        Next
        MsgBox("termino")
        x = Nothing
    End Sub

thanks...
 
Back
Top