Attempts to open an excluded file - causes abort in script

Advertisement

Tim
Joined:
Posts:
2
Location:
Zaragoza

Attempts to open an excluded file - causes abort in script

So, I'm trying to use a script with WinSCP.com, to back up my files to my server. The script looks something like this
option batch on
option confirm off
option exclude "*.ncb"
open tim@server
put K:\Development\projects.* /backup/ftp/Test/*
close
exit
Note that exclude "*.ncb". The problem is that WinSCP tries to open this file, even though it's not going to copy it. It fails to access the file when it's in use (it's in use by MSVC). The output looks like this
K:\Development\Projects.ncb |          0 KiB |    0.0 KiB/s | binary |   0%
Can't open file 'K:\Development\Projects.ncb'.
System Error.  Code: 32.
The process cannot access the file because it is being used by another process
(A)bort, (R)etry, (S)kip, Ski(p) all: Abort
Of course Abort means all the other files are not transferred (things work fine when I don't have MSVC open - all files are transferred).

So, I think this is a kind-of bug.

But, I will now go and investigate if there's a work-round, but changing the option confirm to use skip. Or something.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum