Posted: 2014-06-05 06:50
i found some example code on the internet, but it won't let me connect to the SFTP.
i've been using FileZilla for SFTP transfers, but am now in the need for some automated scripting. so i came across WinSCP. every day i connect to a remote folder and there are just under 100 files. and every day i'm downloading a dozen from there, and that list of files i need varies by day of week. so i want to automate that
i found this thread here and then copied the script mentioned in there
but the shell tells me host "username" does not exist. so something must be wrong in the syntax that i copied from there.
this is my script:
# Connect to the host and login using password
# Change the remote directory
# get all the files in the remote directory and download them to a specific local directory
get *example_pattern*.csv localtargetpath
# Close and terminate the session
what am i doing wrong?
i tried the documentation/help on here, searched for the "open" command, but can't find syntax
Location: Prague, Czechia
It should be
Posted: 2014-06-05 18:05
You can post new topics in this forum
And it's free!