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

winscp.com script is hanging when donwnloading too many files

Hi Team,

My winscp.com script is hanging when I'm trying to download too many files at once.
It's downloading about half of them and hangs.
The problem is not in file size because I've downloaded a big archive and it was successful.
Pls help me to solve the problem.

This is the code I'm using to download the files.

exec.StdIn.Write(
"option batch abort\n"+
"option confirm off\n"+
"open sftp://xxx:xxx@xxx.com -hostkey=\"xxx\" \n"+
"get /download/* \"C:\\Program Files (x86)\\download\\ \" \n"+
"exit");