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

CitrixITM

.NET and FileMask

Hi,

First, thank you so much for an amazing piece of software. Much appreciated.

I have a PowerShell script that leverages the WinSCP .NET assembly and works well.
I am Synchronizing the local files to match the FTP files.

I would like to update the script to sync only a single file in the remote directory. I'm trying to use the below Transfer Option to do this, but no matter what i try in there, I can't get any mask to work. Likely my syntax is off. I looked everywhere for an example that used .NET and filemask and was unable to find one.

$transferOptions.FileMask = "This is a file.csv"


Thanks so much!