Posted: 2015-04-24 00:23
Sorry for the question; but have spent all day on this. my script is connecting to the database; but it isn't downloading then deleting the files from the Remote server to the local machine. I'm not sure what I have wrong and can connect with all - F6 from the "CHANNELNAME" works correctly; but the script below is aligned in schedule tasks; not returning any errors; but not returning any data or deleting any data. (*NOTE the RSA KEY IS VERIFIED ACCURATE/STRIPPED FOR SECURITY)
# Do not to stall on errors
option batch on
# Disable overwrite confirmations
option confirm off
open CHANNELNAME -hostkey="ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
# Set automatic transfer mode to accomidate PDF and HL7 text files.
# Text file extentions are stored in WinSCP.ini
option transfer automatic
# Download and then delete remote files.
# Local and remote directories are stored in WinSCP.ini
get *.* .\ -delete
Location: Prague, Czechia
Please attach a full log file showing the problem (using the latest version of WinSCP).
To generate log file, use
You can post new topics in this forum
And it's free!