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

armanit

Missing files during the download.

Hi Team,

I'm trying to download about 40 files from SFTP server and it's downloading only 30 of them and hangs.
Pls help to fix the problem.

This is the script I'm using.

var exec = shell.Exec("winscp.com /xmllog=\"C:\\download\\log\\download.xml\" ");
exec.StdIn.Write(
"option batch abort\n"+
"option confirm off\n"+
"open sftp://xxx:xxx@xxx -hostkey=\"xxxx\" \n"+
"get /download/* \"C:\\download\\\" \n"+
"exit");

Thanks
Arman