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: Copying multiple files

Wildcards in scripting are supported since 3.7.2 only. Please upgrade.
SJ

Copying multiple files

I am using WinSCP ver 3.7.1
My intention is to get all the files present in a particular directory from a server using a script (batch commands).

Using the script I am able to login and list the files with S*.txt , but when I use
"get s*.txt d:\"
I get the error
"Can't get attributes of file 's*.txt'.
No such file or directory.
Error code: 2
Error message from server: The filename, directory name, or volume label syntax
is incorrect. (en)
Request code: 7
----------------------
Can you please suggest what is going wrong. I cannot hard code the name in the get command as there will more than 1 file and could have different names.

Thanks
Santosh J.