We have five monitoring stations which send three times a day a 200k zip file to a ftp server using a batch file and WinSCP. This works perfectly fine. However, every 9 days the zip file is larger (30 MB) and one station runs into trouble. This station connects to the internet over the mobile network. This connection isn't perfectly good but not bad either. At least we manage to access and control the station with TeamViewer.
To send the zip file the scheduler calls a batch file which contains this line:
CALL "%ProgramFiles%\WinSCP\winscp.com" /timeout=120 /ini=nul /script=ftp.txt /log="ftp.log" /loglevel=-1 /logsize=1M
The script file ftp.txt contains the following lines:
option batch on
option confirm off
open ftp://user:password@ftp.myserver.ch/
cd /mfm/noe/aqc0/data/gr_ro2
put c:\Transfer\*.zip
close
exit
The problem starts with this:
Script: Timeout detected. (control connection)
It seems to re-try but fails with this error:
The process cannot access the file because it is being used by another process.
I have attached the log file. Is there something I can do better, to make a successful transfer of a larger file with this station?
Any help is appreciated.