Topic "Attempts to open an excluded file - causes abort in script"

Author Message
[View user's profile]

Joined: 2009-11-27
Posts: 2
Location: Zaragoza
So, I'm trying to use a script with, 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/*

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.
[View user's profile]

Joined: 2009-11-27
Posts: 2
Location: Zaragoza
Okay - using "option batch continue" seems to do the trick :-)

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
This bug has been added to tracker.
Martin Prikryl

You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License