Scripting: GET files excluding subdirectories

Advertisement

PrgSRR@...
Guest

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Scripting: GET files excluding subdirectories

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

Reply with quote

Advertisement

You can post new topics in this forum