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: cmd file ftp connection attempt times out

If it is indeed a FTP connection, you need to specify that in the script. WinSCP defaults to SFTP. Please read documentation. If that does not help, come back.
jkappl

cmd file ftp connection attempt times out

"C:\Program Files\WinSCP\winscp.com" /console /passive /command "option batch abort" "option confirm off" "open peakbook:pw@ftp.peak-books.com" "put setup.exe /public_html/500_Peak_Website" "exit"

This line in a cmd file will not connect with the ftp site. But using the WinSCP login works every time.

I have given both WinSCP and this batch file permissions in the Exceptions panel of WIndows Firewall control panel. Ansd tried many many variations of command syntax. The command file attempt at connection always times out. The WinSCP login window always works.

Any thought ?