Click to See Complete Forum and Search --> : FTP with Internet Transfer Control
dschach
Nov 8th, 1999, 01:29 AM
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?
Compwiz
Nov 8th, 1999, 04:10 AM
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
dschach
Nov 8th, 1999, 04:46 AM
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.
Compwiz
Nov 8th, 1999, 05:14 AM
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. :(
ShadowCrawler
Nov 8th, 1999, 05:24 AM
example to download file.exe from ftp.cdrom.com:
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 (http://wwp.mirabilis.com/9872708)
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 (http://www.icq.com/15440110)
Homepage: http://www.azzmodan.demon.nl
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.