|
-
Jul 3rd, 2001, 06:26 AM
#1
Thread Starter
New Member
Inet
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.
-
Jul 3rd, 2001, 07:15 AM
#2
Don't know but maybe
Code:
.Protocol = icFTP
.RemotePort = 21
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|