Topic "Include/Exclude specific File using synchronize with -filema"

Author Message
solicom
[View user's profile]

Joined: 2013-02-16
Posts: 8
Hello,

is it possible to Include or Exclude some specific Files before using synchronize with -filemask ??

EX:

I want to exclude some specific files before getting synchronized to avoid them to be uploaded, for this example if exist BFFXA018.exe or CFFXA016.exe, they shouldnt be synchronized even the filemask is set for *.exe

CODE:

option echo on
option batch on
# Disable overwrite confirmations that conflict with the previous
option confirm off
option exclude "BFFXA018.exe;CFFXA016.exe; /*"
# Connect to FTP
# Synchronize DIAGS
synchronize local -filemask="*.exe>1D|archive/" D:\fsdash\diags\SYNCdev\bin\temp\SYNC /diags/SYNC
exit


THX
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
The option exclude is deprecated and replaced by -filemask.

You can combine both exclude and include mask in -filemask:
https://winscp.net/eng/docs/file_mask#include_exclude

Actually you are doing it already, so I do not see a point of the question.

Use -filemask="*.exe>1D|archive/;BFFXA018.exe;CFFXA016.exe"
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License