Please post a log file and output of the script.
I used perl script to call the WinSCP command.
But if the remote disk full or network problem,the WinSCP window will not terminate automatically.
It just hanged on there which made my program cannot go to the next stage.
I know -timout can used in the open command,does there has any option can take with the put command when transfering data.