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

martin

Re: get command - want to ignore subfolders

Remove the space:
"get *.* -filemask=|*/hold/ -delete"

Or if you need spaces eventually, quote the parameter:
"get *.* -filemask=""| */hold/"" -delete"

See https://winscp.net/eng/docs/commandline#syntax
cphite@gmail.com

get command - want to ignore subfolders

Hello -

I have the following commands in a batch script:
"cd outbound" "lcd E:\Import" "get * -delete" "close" "exit"


I want it to only pull files from this outbound folder. There is a hold subfolder that I want it to ignore. I tried changing it to this:
"cd outbound" "lcd E:\Import" "get *.* -filemask=| */hold/ -delete" "close" "exit"


But then it doesn't get any of the files. What am I doing wrong?

The remote site is Linux based, if that makes a difference.