spins52
Jul 3rd, 2001, 06:26 AM
I am trying to develop a simple ftp program to upload some .txt files via ftp. I then want a message sent to me if an error occured and on which .txt file, preferably by email.
I think I need to use the Inet class. I have set the correct references. However I still keep receiving errors regarding variables not set.
Sub Main()
Dim Inet1 As Inet
Dim strSource as string
strSource = "view.txt"
With Inet1
.URL = "ftp 172.20.130.2"
.UserName = "Administrator"
.Password = "TheMatador"
.Execute "lcd c:\"
.Execute "PUT " & strSource
.Execute "CLOSE"
End With
End Sub
Please help! I am still quite new to VB.
I think I need to use the Inet class. I have set the correct references. However I still keep receiving errors regarding variables not set.
Sub Main()
Dim Inet1 As Inet
Dim strSource as string
strSource = "view.txt"
With Inet1
.URL = "ftp 172.20.130.2"
.UserName = "Administrator"
.Password = "TheMatador"
.Execute "lcd c:\"
.Execute "PUT " & strSource
.Execute "CLOSE"
End With
End Sub
Please help! I am still quite new to VB.