This article explained how to automate the ftp activities from batch file. It will helps to automated file moving process. This example batch file is for upload backup files to ftp server. Here we used an additional configuration file ( ftp.cfg ) for FTP commands. Configuration file should be in the same directory of batch file, or specify the path in the batch file. All ftp commands should specify in this ftp.cfg file. You can use any file name, only thing it should be specified in the batch file.
-s:filename Specifies a text file containing FTP commands; the commands will automatically run after FTP starts.
hash command will help to display the progress of file movements
Server IP : 192.168.0.1
@echo off ftp -v -n -s:ftp.cfg
open 192.168.0.1 Username Password binary hash prompt mput filename.zip bye