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?
# 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?