copying files to another machine

hello,
i need to make a script in which a file on my unix server is copied to another machine using windows operating system in its C:\ drive. both the machines are connected through LAN.

you can use ftp to transfer the files between two machines

ftp -n <dest m/c ip> << !EOF
user <login> <password>
cd <destination path>
prompt
bin
mput <file name>  
quit
!EOF

this thing does not work when executen as part of shell script.