Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Attempts to open an excluded file - causes abort in script

This bug has been added to tracker.
Tim

Okay - using "option batch continue" seems to do the trick :-)

Tim
Tim

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.