Location: Fort Lauderdale, FL
Posted: 2016-05-11 16:25
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!
Location: Prague, Czechia
The code looks good.
Just make sure you actually pass the
If this does not help, show us your complete code and attach a session log file.
You can post new topics in this forum
And it's free!