3 Replies - 1304 Views - Last Post: 09 January 2012 - 10:56 PM

#1 V0R73X  Icon User is offline

  • New D.I.C Head

Reputation: -3
  • View blog
  • Posts: 12
  • Joined: 01-December 11

Downloaded file is damaged through cmd->ftp

Posted 09 January 2012 - 11:19 AM

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?

Is This A Good Question/Topic? 0
  • +

Replies To: Downloaded file is damaged through cmd->ftp

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9195
  • View blog
  • Posts: 34,526
  • Joined: 12-June 08

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?

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.

http://www.nsftools..../MSFTP.htm#type
Was This Post Helpful? 2
  • +
  • -

#3 V0R73X  Icon User is offline

  • New D.I.C Head

Reputation: -3
  • View blog
  • Posts: 12
  • Joined: 01-December 11

Re: Downloaded file is damaged through cmd->ftp

Posted 09 January 2012 - 09:05 PM

THANKS A LOOOOOT! :smartass: :bigsmile:
That was it! I was supposed to use binary type for .zip files! :bananaman:
Was This Post Helpful? 0
  • +
  • -

#4 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9195
  • View blog
  • Posts: 34,526
  • Joined: 12-June 08

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..
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1