How to transfer files from UNIX server to windows machine or vice versa using ftp or sftp commands?

hi, i want to write a shell script code which transfers files from a directory in unix server to a directory in a windows machine.. can any1 give me a sample code which uses ftp or sftp command..

thanks very much,

Before you get carried away, is ftp or sftp actually running on the windows host? Which?

If not, the code won't work no matter what you do to it.

hi Corona688, thanks for replying to my thread. actually m very new to ftp n sftp.. so can u plz tell me how to run ftp on windows. i didnt check whether its running or not..plz help me..

If you don't know if FTP or SFTP are running on Windows, they almost certainly aren't. SFTP in particular would be unusual on a Windows system.

First check though -- what is your actual goal here? Windows does support file shares directly, which will allow file transfer over a local network (not across the internet).