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

martin

Re: Timeout detected. (control connection)

Please attach a full session log file showing the problem (using the latest version of WinSCP).

Can you download those files anyhow? Using WinSCP GUI? Using any other FTP client? If you can, please post a log file for that too.

To generate the session log file, use /log=C:\path\to\winscp.log command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
alvintc

Timeout detected. (control connection)

I've now finished everything I need... just now need to automate the pulling down of files/ folders.

I'm still testing using command prompt until the script is perfect, but on large files I'm receiving "timeout detected. (control connection)"... any suggestions?
My batch file is:
"C:\Program Files (x86)\WinSCP\WinSCP.com" /log="I:\SeedboxAuto\WinSCP.log" /ini=nul /script="I:\SeedboxAuto\WINSCPFULL.txt"

if %ERRORLEVEL% neq 0 goto error
 
:error
echo Error!
exit /b 1


The WINSCPFULL script is:
# Connect

open ftp://MASKED -rawsettings ProxyPort=0

# Download TV Shows newer than 2 minutes then delete
cd "/media/TV"
get -delete -filemask=<2N * "I:\TV-I\"

# Download Films newer than 2 Minutes then delete
cd /media/Films
get -delete -filemask=<2N * "E:\Films-E\"

# Disconnect
close
# Exit WinSCP
exit