How to exclude some folders from TXT file

Advertisement

solicom
Joined:
Posts:
8

How to exclude some folders from TXT file

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,271
Location:
Prague, Czechia

Re: How to exclude some folders from TXT file

WinSCP does not support this.
_________________
Martin Prikryl

Reply with quote

solicom
Joined:
Posts:
8

Re: How to exclude some folders from TXT file

martin 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.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,271
Location:
Prague, Czechia

Re: How to exclude some folders from TXT file

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

Reply with quote

Advertisement

You can post new topics in this forum