FTP client command line put directory
12,486
Solution 1
Try with WinSCP (see CLI docs) or NcFTP
Solution 2
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
Author by
Patrick Lorio
Updated on June 13, 2022Comments
-
Patrick Lorio about 2 years
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.