Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

That's correct. But that's a different use than yours. Why don't you just try it?
AxelP

Thanks but the documentation says:

You cannot use this in source parameters of script commands and .NET assembly methods
AxelP

Exclude multiple folders filemask in PowerShell

I want to exclude multiple folders during a synchronization. I use:
#TransferOptions
$transferoptions = New-Object WinSCP.TransferOptions
$transferOptions.TransferMode = [WinSCP.TransferMode]::Binary
$transferOptions.AddRawSettings("ExcludeEmptyDirectories", "1")
$transferoptions.FileMask = "|*/Archive/*"

Can you help me please?