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

Advertisement

Dmitry
Guest

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"

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

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.

Reply with quote

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.

Reply with quote

martin
Site Admin
martin avatar

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

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

Reply with quote

Advertisement

You can post new topics in this forum