File not being uploaded using SFTP, no error reported either
I am using WinScp to upload file to remote server every night. The name of the file is same so it has to overwrite. It works when using FTP but not when using SFTP
file.txt already exists on the server. The same thing works using FTP
Extract of the script is below:
option batch abort
option confirm off
open sftp://user:pwd@ftp.hostname.com -hostkey="xxxx"
cd /Import/Folder/
lcd C:\Export\
put file.txt
file.txt already exists on the server. The same thing works using FTP
Extract of the script is below:
option batch abort
option confirm off
open sftp://user:pwd@ftp.hostname.com -hostkey="xxxx"
cd /Import/Folder/
lcd C:\Export\
put file.txt