Topic "WinSCP FileMask"

Author Message
therand
[View user's profile]

Joined: 2015-08-27
Posts: 2
I've tried so many ways to get the FileMask to work with no luck. I've looked up on this forum, googled and still nothing works. Can someone please show me how to specify a FileMask for grabbing three files (all of the same extension). These three files are in a directory with many other files. Some with the same extension and some with different ones. The directory also has many subdirectories.
Any help would be appreciated Smile
therand
[View user's profile]

Joined: 2015-08-27
Posts: 2
I can get specific files (*.lst) but I'm trying to exclude directories. I just can't get it to work.
How would you format the FileMask to grab only the *.lst files but not any directories/folders?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
If you need three specific files, you do not need any mask, just call .GetFiles three times with paths to the three files.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License