I am trying to get WINSCP to connect to an SFTP site and download a folder structure and contents.
I am currently using the following script which works for copying a single file but need it changed to copy full folder structure including files within each folder.
# Automatically abort script on errors
option batch abort
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect using a password
# Change remote directory
# Force binary mode transfer
option transfer binary
# Download file to the local directory d:\
get Test.txt c:\Temp\
# Exit WinSCP
Any help would be greatly appreciated.