Results 1 to 7 of 7

Thread: vb/FTP

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    69
    i'm using the microsoft internet transfer control to
    access an ftp site but when i download the file its
    garbage ##@@@@##$%^&*()(*&^%%$%^&* ect....

    it has a file name a xxxx with out an extention as .txt but
    it is a text file

    any help would be great

    thanks

  2. #2
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    We would need to see the way you are downloading please.

    Thank you,
    D!m
    Dim

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    69
    this is what i'm doing

    With Inet1
    .Cancel
    .Protocol = icFTP
    .RemoteHost = "99.99.99.999"
    .RemotePort = "21"
    .UserName = "name"
    .Password = "pass"
    End With

    Inet1.Execute , "CD XXX" this changes the dir.
    Inet1.Execute , "get file C:\temp\file.txt"

    thanks

    jason

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    69
    No ideas huh?
    what about using winsock??

  5. #5
    Guest
    Try this:

    Code:
    Inet1.Execute "http://www.site.com/index.html", "GET"
    If that doesn't work, try this:

    Code:
    Inet1.Execute, GET "http://www.site.com/index.html C:\htmfile.html"

  6. #6
    Lively Member
    Join Date
    Jan 1999
    Location
    Karjalohja, Finland
    Posts
    123
    Try this:

    Private Sub FtpGetFile()

    With Inet1
    .Protocol = icFTP
    .URL = "99.99.99.999"
    .UserName = "name"
    .Password = "pass"
    .RemotePort = "21"
    End With

    Inet1.Execute , "CD XXX" 'this changes the dir.
    DoLoop

    Inet1.Execute , "GET file C:\temp\file.txt"
    DoLoop

    Inet.Execute , "QUIT"
    DoLoop

    End Sub

    Private Sub DoLoop()

    Do
    DoEvents
    Loop While Inet1.Still.Executing

    End Sub

    - Dj4

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    69
    would it matter if i ran this on windows NT workstation??

    it works fine in 98 i dunno??

    thnaks

    jason

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