Posted: 2014-07-17 07:44
I'm trying to download bunch of files from a SFTP server.
I found the following script in the webpage,"https://winscp.net/eng/docs/scripting", and gave it a try.
My destination folder is assigned to D:\WinSCPDownload\A
The process failed with an error message of "D:\WinSCPDownload\A" is not a file.
however, it worked when the destination folder is D:\
I searched for some other examples, and showed that subfolders under D:\ also work out well.
I have no ideas why it just doesn't work out for me.
Am I missing anything?
Thanks for helping
option batch abort
option confirm off
option transfer binary
get examplefile.txt d:\WinSCPDownload\A
Location: Prague, Czechia
The target directory path has to end with backslash:
Posted: 2014-07-18 09:08
It turned out to be a "\"
I really appreciate your help!!
Thanks for your reply.
You can post new topics in this forum
And it's free!