Question Locked

how to compress files before uploading/downloading via ftp (command line)

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
im a newbie when it comes to commandline ftp. i was wondering how i can upload/download groups of files using the command line? i know how to upload/download single files (one at a time). but how do i get/send multiple files. also, how can i compress them from the ftp server. thanks

6 replies

by p.j.hutchison

To compress files, you need the command line ZIP.EXE program from any good shareware/freeware site to compress files to smaller files.

To send/receive multiple files, you should use the MPUT or MGET commands and use wildcards (* or ? characters), for example, this command will d/l all JPG files:
MGET *.jpg

by jobart16

how do i automate the pressing of "y" for each file transfer? it will be a big help if im going to transfer A LOT of files. thanks

by p.j.hutchison

Run FTP with the -i option to turn off interactive prompting.

by jobart16

i use the code stated below. but i get an error message "unknown host" but when i do it manually, i could connect to the ftp server without any problems..what am i doing wrong?!

open 10.0.100.160
username
password
binary
get test.rar
quit

This discussion is closed to new replies.