Topic "How to exclude some folders from TXT file"

Author Message
solicom
[View user's profile]

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

I want to synchronize excluding some folders BUT I dont want to add every folder to my code to exclude them, is there a way I can add a TXT file where can contain all the folders name that I want to exclude???

My code:

synchronize local -filemask="*.zip>2013-02-07|archive/" D:\BIOS /remote/BIOS

instead of adding |archive, I want to add something like |exclude.txt where will be included a list of folders I want to exclude.

THX
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
WinSCP does not support this.
_________________
Martin Prikryl
solicom
[View user's profile]

Joined: 2013-02-16
Posts: 8
prikryl wrote:
WinSCP does not support this.


Does winSCP still not support how to exclude / include specific folders/directories reading a list from a TXT file or any other file type???

I want to read a TXT file with all the paths to be only included within my synchronization, and let WINSCP to synchronize only those that are included in the TXT file.

Thanks for support.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
No, WinSCP still does not support that. I do not think it ever will.

Though it is pretty easy to write a PowerShell script that loads such file and composes a WinSCP file mask from its contents and passes it to Session.SynchronizeDirectories.

See
https://winscp.net/eng/docs/library_powershell
https://winscp.net/eng/docs/library_session_synchronizedirectories
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