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: get with files in a list

Just repeat the get command as many time as you need:

winscp.com /command "open ..." "get users/revision/file1.pdf \daten\" "get users/revision/file2.pdf \daten\" "get users/revision/file3.pdf \daten\" ...

If the folders are the same always, you can even use a single get command like:

winscp.com /command "open ..." "cd users/revision" "get file1.pdf file2.pdf file3.pdf ... \daten\" ...

See https://winscp.net/eng/docs/scriptcommand_get
Saul1

get with files in a list

Hello,
in a program I check what files I need to download onto my computer. Now I have a do while what calls winscp with the new file name. But it takes long to open and close the connection.
winscp.com /command "open sftp://revision:test#1@sftp.mysftp.test.com/ " "get users/revision/file1.pdf \daten\
The file names change with each program call. Is it possible to store the file names in a separate file list like file.txt and call winscp including the filelist.txt somehow to download all filenames included in the file file.txt?

Thanks
Wolfgang