Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

Re: Scripting: GET files excluding subdirectories

get -filemask="| */" *
Make sure you are using the latest version of WinSCP.
PrgSRR@...

Scripting: GET files excluding subdirectories

Hello:

I am using the scripting commands for automation purposes and I am trying to download all "Files" in the remote directory EXCLUDING the sub-directories (such as Archive, Backup, etc.) which are located within the remote directory.

GET *.*
Would download all files and sub-directories, so I am trying to use:
GET -filemask=|*/
GET -filemask="| */"
But it is not working out as expected.
It is specifically downloading sub-directories with the above command.

Any assistance is very much appreciated.

Thank You.

Cheers!
SRR