Re: Help me to write a batch file to transfer a file 2 sftpsite
option batch abort
option confirm off
open sftp://XXXXXX:XXXXXXX@sftp.acme.com -hostkey="ssh-dss 1024 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
option transfer binary
lcd "\\NTS02\InsightCS\ERA\Files To Export"
cd "/"
put *.835 -delete -nopreservetime -nopermissions
close
exit
option confirm off
open sftp://XXXXXX:XXXXXXX@sftp.acme.com -hostkey="ssh-dss 1024 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
option transfer binary
lcd "\\NTS02\InsightCS\ERA\Files To Export"
cd "/"
put *.835 -delete -nopreservetime -nopermissions
close
exit