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: How to get files from folder including files from subfolders without folders.

So, do you want to flatten the directory structure, or what?
Guest

Re: How to get files from folder including files from subfolders without folders.

martin 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

Re: How to get files from folder including files from subfolders without folders.

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

I do not understand the difference.
Dmitry

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

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"