Exclude multiple folders filemask in PowerShell

Advertisement

AxelP
Guest

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?

Reply with quote

Advertisement

AxelP
Guest

Thanks but the documentation says:
You cannot use this in source parameters of script commands and .NET assembly methods

Reply with quote

Advertisement

You can post new topics in this forum