Results 1 to 6 of 6

Thread: FTP with Internet Transfer Control

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 1999
    Posts
    5

    Post

    I'm using the Internet Transfer control to FTP text files from a NT box to a UNIX box. The files transfer fine, however the carriage return at the end of each line is replaced with a ^M character when viewing the files in UNIX. Is there a way to set set the FTP mode so this character doesn't appear?

  2. #2
    Hyperactive Member
    Join Date
    Jul 1999
    Location
    NY, USA
    Posts
    270

    Post

    Are you using the ASCII (Type A) mode?

    ------------------
    Tom Young, 14 Year Old
    tyoung@stny.rr.com
    ICQ: 15743470
    AIM: TomY10
    PERL, JavaScript and VB Programmer

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 1999
    Posts
    5

    Post

    I believe so. However, I don't know how to change to Binary mode. Sending a text string of "binary" with the Execute method doesn't seem to work.

  4. #4
    Hyperactive Member
    Join Date
    Jul 1999
    Location
    NY, USA
    Posts
    270

    Post

    I know what you are talking about (I have UNIX, and it probably says 'Didn't strip carriage returns after network transfer?') anyway, this only happens to me when I transfer trough a shared drive, not FTP, so I'm sorry I can't help you any further.

  5. #5
    Member
    Join Date
    Jan 1999
    Location
    Gig Harbor, WA, USA
    Posts
    48

    Post

    example to download file.exe from ftp.cdrom.com:

    Code:
    Dim B() As Byte 'To store file into
    Inet.Protocol = icFTP
    B() = Inet.OpenURL("ftp://ftp.cdrom.com/file.exe", 1)
    Open "C:\file.exe" For Binary As #1
    Put #1, , B()
    Close
    Inet.Cancal 'To Close Any Connections
    Hope this helps!

    ------------------
    (`..`->ShadowCrawler<-`..)
    Teenage Programmer
    Visual Basic, HTML, C++, JavaScript

    http://welcome.to/X12Tech
    Email: craigkovatch@compuserve.com
    ICQ#: 9872708

  6. #6
    Guest

    Post

    He used binary transfer, the ITC(Internet Transfer Control) cant handle ASCII transfer
    <A HREF="http://support.microsoft.com/support/kb/articles/Q233/0/37.ASP" TARGET=_blank>Q233037 - INFO: Limitations of Internet Transfer Control
    </A>




    ------------------

    Vincent van den Braken
    EMail: azzmodan@azzmodan.demon.nl
    ICQ: 15440110
    Homepage: http://www.azzmodan.demon.nl




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