there are 2 file you need

1. info of your ftp ( store it in .txt)
in my case i named it info.txt with these code written:

yourusername
yourpassword
bin
cd yourremotedirectory
bye

2. .bat file to connect to ftp and do what you want
in .bat file simply call the info.txt with this code:

ftp -s:log.txt YourFTPAddress