Topic "cmd file ftp connection attempt times out"

Author Message


"C:\Program Files\WinSCP\" /console /passive /command "option batch abort" "option confirm off" "open" "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 ?
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24755
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

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License