Topic "cmd file ftp connection attempt times out"

Author Message
jkappl

Guest


"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 ?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
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.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License