Pages

Thursday, January 8, 2015

FTP with ini and batch file, simple example.

==============================
General
==============================
From bat file launch ftp command, using ini file.

==============================
params.ini
==============================
USER my_user my_pass
lcd D:\local\folder\files
cd /remote/folder/target
mput *.dat
bye

==============================
send_with_ftp_ini.bat
==============================
ftp -i -s:params.ini -n 10.20.30.40 >> ftp_log.txt
pause

No comments:

Post a Comment