Topic "How to get files from folder including files from subfolders without folders."

Author Message
Dmitry

Guest


Help me please.
I try to get all files from folder including files from subfolders using the command "get" and mask.

In this case i get all files and all folders. I think that i can't write correct mask.

My command:

winscp.exe /command "open sftp://MyName@host.ru:22/ -privatekey=C:\file_ppk\Options\123.ppk"

"get /folder1/folder2/*.* C:\Users\Ivan\Documents\sftp\download\" "exit"
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
You want: all files from folder including files from subfolders
You get: all files and all folders

I do not understand the difference.
Guest




prikryl wrote:
You want: all files from folder including files from subfolders
You get: all files and all folders

I do not understand the difference.


I need to get files without folders, only files.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
So, do you want to flatten the directory structure, or what?
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