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

Author Message
didd11

Guest


I need to transfer a file to a sftp site need automate this.
please help me with examples
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Please read documentation:
http://winscp.net/eng/docs/guide_automation

If that does not help, come back.
_________________
Martin Prikryl
thefugitive
[View user's profile]

Joined: 2012-03-26
Posts: 15
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
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License