sftp script

I am new to the forum. I need help with writing a unix sftp script that will allow me to put a txt file in the destination server. The destination server is a windows box and when I connect from another windows machine, at the dos prompt I need to
Type: ftp<sp> ftp-gw<enter>
Type: servername <enter>
Type: password
I need to put the file in C:\temp

I have a normal ftp script that works just fine with delivering files to other servers but I am stuck with this machine that uses secure ftp.

Hi,

In ur machnie config ftp server and use that one for file to put on server.

Ftp is already configured in the unix machine. The connection times out when trying to connect to the destinition windows machine to put the file.