Topic "download only files"

Author Message
reiibs
[View user's profile]

Joined: 2006-12-07
Posts: 6
Location: Austria
Hello,

I want to try to download only files from a given directory but i found no documentation about that. Is that possible without enum the files and download file by file?

Regards
Reinhard
Advertisements
RickB

Guest


reiibs wrote:
Hello,

I want to try to download only files from a given directory but i found no documentation about that. Is that possible without enum the files and download file by file?

Regards
Reinhard


It is documented here:
https://winscp.net/eng/docs/scriptcommand_get
reiibs
[View user's profile]

Joined: 2006-12-07
Posts: 6
Location: Austria
Thats not working. When i use the command winscp3.com user@host /command "get /path/subdir/*.* D:\test\" i get an Error saying that "D:\test\" is not a file. The Directory D:\test exists. When i add *.* to the Destionationpath it will download all files and Subdirectories. Thats not what i want.

Regards
Reinhard
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
1) There's no need to add "*.*" to the and of destination path. It just have to end with backslash.
2) Use "option exclude */" to omit all directories.
_________________
Martin Prikryl
reiibs
[View user's profile]

Joined: 2006-12-07
Posts: 6
Location: Austria
The Exclude works. Fine :D
Thanks for the Help

Reinhard
Advertisements

You can post new topics in this forum






Search Site

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License