Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Daleritf

Automating file transfer in Windows format

I am transferring files on a scheduled bases using these commands:
# the script on errors
option batch continue

# Disable overwrite confirmations that conflict with the previous
option confirm off

# Connectto the FTP Site
open sftp://username:password@hostname

# Change Directory
cd /Production/FolderName/

# Transfer all the .tif files in this directory
put D:\LocalFolderName\*.txt -nopermissions -nopreservetime

# Disconnect from the FTP site.
close
exit

Files are getting transferred without a problem but they are converted to Unix format. Server where I am copying these files does not support Unix format. What should I add to my script to transfer files in Windows format?