script trouble
I am trying to run a script that will allow me to copy a file from a remote pc. The connection is very slow and is prone to failure. I would like to keeping trying to get the file until it has completed, using the multi file transfer. To do this I used the script below;
batch file:
winscp3.com locahost /console /script=download.scr
script:
option confirm off
option batch on
cd /test/exeter
option transfer binary
get db.bak d:/test/db.bak
close
exit
If the script executes fully then everything is good. :D However, if the file transfer fails and needs to be restarted I get the following message;
Target directory contains partially transfered file '_test_db.bak'. Do you want to resume file transfer? Note: Answering 'No' would delete partially transfered
file and restart transfer.
(Y)es, (N)o, (A)bort: Abort
Since the script always gives a negative response it automatically aborts and never completes.
Can anyone see anything wrong here? Is it a bug? I suspect that 'Abort' maybe a new addition or changed somehow.
Please Help!!! :cry:
Dave
batch file:
winscp3.com locahost /console /script=download.scr
script:
option confirm off
option batch on
cd /test/exeter
option transfer binary
get db.bak d:/test/db.bak
close
exit
If the script executes fully then everything is good. :D However, if the file transfer fails and needs to be restarted I get the following message;
Target directory contains partially transfered file '_test_db.bak'. Do you want to resume file transfer? Note: Answering 'No' would delete partially transfered
file and restart transfer.
(Y)es, (N)o, (A)bort: Abort
Since the script always gives a negative response it automatically aborts and never completes.
Can anyone see anything wrong here? Is it a bug? I suspect that 'Abort' maybe a new addition or changed somehow.
Please Help!!! :cry:
Dave