Results 1 to 3 of 3

Thread: FTP Program

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Posts
    9

    Post

    Hey, I'm trying to make an FTP Program but I can't even get the program to connect to an FTP site. I have all the boxes made for entering the IP address, port, username, password etc, but I cant get the connect button to work...here's my current code..

    Private Sub cmdConnect_Click()
    With Inet1
    .Cancel
    .Protocol = icFTP
    .URL = txtURL.Text
    .UserName = txtUserName.Text
    .Password = txtPassword.Text
    End With
    End Sub

    but what i want it to do is display the process of connecting in a text box so i know it connects, then i want a DriveListBox to display the contents of the FTP Site. I know it sounds complicated but Im sure someone could help me. Thanks in advance.

  2. #2
    Lively Member
    Join Date
    Jan 1999
    Location
    Karjalohja, Finland
    Posts
    123

    Post

    Remove Cancel command and try again.

    - Dj4

  3. #3
    New Member
    Join Date
    Feb 2000
    Posts
    1

    Post

    All you have done in your code is set the inet1 properties. After you do that you need to execute a command:

    Inet1.Execute "put c:/blah.txt /blah.txt" would be an example of an execute.

    Hope that helps you get started.

    Culland

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