cmd file ftp connection attempt times out

Advertisement

jkappl
Guest

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 ?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,441
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum