Topic "Copying multiple files"

Author Message


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.

Santosh J.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
Wildcards in scripting are supported since 3.7.2 only. Please upgrade.
Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License