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.
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"