Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FTP client command line put directory [closed]

Is there a command line FTP client where you can upload a whole directory?

Or does anyone know how to make a bat file that uses window's ftp client to upload a directory?

Any thing would be helpful, thanks.

like image 483
Patrick Lorio Avatar asked Nov 01 '11 19:11

Patrick Lorio


2 Answers

Try with WinSCP (see CLI docs) or NcFTP

like image 137
CharlesB Avatar answered Sep 28 '22 09:09

CharlesB


Here's how you can do it in a batch file:

@ftp -i -s:"%~f0"&GOTO:EOF
open ftp.host.com
username
password
folder
mput "*.*"
disconnect
bye

replace the "parameters"(ftp.host.com, username, password, folder) with your own and save it as a .bat Here's more information on ftp scripts in batch

like image 20
Johan_ Avatar answered Sep 28 '22 09:09

Johan_