Topic "exclude files listed in text file"

Author Message
irrupt

Guest


I am not sure if this already exists or someone else has already suggested it, but..

Is it possible to have a list of files within a text file and have them excluded from a synchronization?

I build a list of files to be excluded dynamically using Powershell and sometimes it can get VERY large.

example from my script file:

option exclude *synchronizefolder.txt;"G????";"G?";"FLAMBOROUGH??TOWN?OF??CERTIF?";"GAG001?CARREFOUR?BEAUSOLEIL?DEC";"GAG001?CARREFOUR?BEAUSOLEIL?DEC???Copy";"GAG001?CARREFOUR?BEAUSOLEIL?DEC???Copy??2?";"GAG001?CARREFOUR?BEAUSOLEIL?DEC???Copy??3?";"G?C??HUSTON?P?S???TCS";"GEORGE?BROWN?TASTE?CAN??MEDALLI";"GEORGIAN?COLL??CERT?";"GERRY?NIXON?LASER?plane";"Glen?Park?Bear?TCS?";"GUELPH?SCH??SAFETY?PATROL?DURO?";

now sometimes there can be THOUSANDS of these and I think there may be a limit to how long this can be.

Can you make it so that it reads from a text file (line after line of filenames to be excluded) ?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
So what's the problem with generating the filemask in WinSCP format from your text file with a PowerShell script?
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