Results 1 to 2 of 2

Thread: Inet

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Location
    Southend, UK
    Posts
    2

    Angry 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.

  2. #2
    rsitogp
    Guest
    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
  •  



Click Here to Expand Forum to Full Width