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");
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");