Use the following command to automate FTP session in windows.
In the following example, script.txt contains ftp commands to automate your session
c:\> ftp -s:script.txt ftp.ftpserver.com
The contents of script.txt should look like this.
You can use this with your batch scripts to automate repeated tasks
Hope this is useful..!