Help me to write a batch file to transfer a file 2 sftpsite

Advertisement

didd11
Guest

Help me to write a batch file to transfer a file 2 sftpsite

I need to transfer a file to a sftp site need automate this.
please help me with examples

Reply with quote

Advertisement

thefugitive
Joined:
Posts:
15

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

Reply with quote

Advertisement

You can post new topics in this forum