Hi. I'm using ftp through command prompt, and I can login and everything works fine but when I try to download a file using the "recv" command, the downloaded file is not complete and can't be opened, however when I download the same thing using FileZilla, it's fine!
I'm in a situation in which I have to use command prompt, so... I insist on using the command prompt and not FileZilla!
Does anyone know why that happens?
Downloaded file is damaged through cmd->ftp
Page 1 of 13 Replies - 1016 Views - Last Post: 09 January 2012 - 10:56 PM
Replies To: Downloaded file is damaged through cmd->ftp
#2
Re: Downloaded file is damaged through cmd->ftp
Posted 09 January 2012 - 11:45 AM
What do you have your 'type' set as? Did you change it?
http://www.nsftools..../MSFTP.htm#type
Quote
type
Sets or displays the file transfer type.
Syntax: type [type-name]
Parameter(s):
type-name - Specifies the file transfer type; the default is ASCII. If type-name is not specified, the current type is displayed.
Note
FTP supports two file transfer types, ASCII and binary image.
ASCII should be used when transferring text files. In ASCII mode, character conversions to and from the network standard character set are performed. For example, end-of-line characters are converted as necessary, based on the destination's operating system.
Binary should be used when transferring executable files. In binary mode, the file is moved byte-by-byte.
Sets or displays the file transfer type.
Syntax: type [type-name]
Parameter(s):
type-name - Specifies the file transfer type; the default is ASCII. If type-name is not specified, the current type is displayed.
Note
FTP supports two file transfer types, ASCII and binary image.
ASCII should be used when transferring text files. In ASCII mode, character conversions to and from the network standard character set are performed. For example, end-of-line characters are converted as necessary, based on the destination's operating system.
Binary should be used when transferring executable files. In binary mode, the file is moved byte-by-byte.
http://www.nsftools..../MSFTP.htm#type
#3
Re: Downloaded file is damaged through cmd->ftp
Posted 09 January 2012 - 09:05 PM
THANKS A LOOOOOT!
That was it! I was supposed to use binary type for .zip files!
That was it! I was supposed to use binary type for .zip files!
#4
Re: Downloaded file is damaged through cmd->ftp
Posted 09 January 2012 - 10:56 PM
No problem.. it's a bear to remember what type is what but usually zips are binary..
Page 1 of 1
|
|

New Topic/Question


MultiQuote







|