Don't know - problem you have is with programs that require passwords (ie ftp), is that you have to simulate keyboard entry. That is what expect does for you.
For ftp'ing files/dir from windows box you need to create two files
1) a .bat files contain everthing you need and this line
ftp -in < autoftp
2) file called autoftp with this as a content
open 192.168.1.3 <--your ip user root abc123 <--username and passwd verbose type ascii hash cd /home/syedz <-- remote dir pwd lcd /root/ftp_test <-- local dir mput * bye