Results 1 to 7 of 7

Thread: FTP

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    how do i direct connect to a ftp server and send a file, can anyone send me a demo of how to do it or some of the code ?

    Many Thanks.

  2. #2
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    I have been trying to do this for months. I have eventuly finished but i am missing the code to enable progress.

    Visit my website for details about the ftp and e-mail me if you want the source.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  3. #3
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Code:
    With Inet1
        .Cancel
        .Protocol = icFTP
        .url = "123.123.123.123"
        .UserName = "me"
        .Password = "xxxx"
    End With
    'upload a file
    Inet1.Execute , "PUT C:\test.txt test.txt"
    'download file and download it to C:\test.txt
    Inet1.Execute , "Get test.txt C:\test.txt"
    Hope that helps,
    D!m
    Dim

  4. #4
    Member
    Join Date
    Nov 1999
    Location
    Manila, Philippines
    Posts
    59

    The code you presented really works and that's what actually I've been using but what if I want to use winsock control? I know, as they say, that winsock control is far more better than the inet control.
    Mikey
    A/P
    Using VB6 SP4 Enterprise Ed.

  5. #5
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    That is very true...and for winsock transfers...please reffer to this example.


    Gl,
    D!m
    Dim

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    Thanks Guys.

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    OK, how would i upload the file 'C:\test.txt' into the directory 'psyvision-soft.net' because my server starts in the dir before the one i want it in

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