Topic "cant execute winscp3 using a batch file"

Author Message
DD

Guest


I'm using a batch file to connect to a FTP site using Winscp3.

temp.bat contains
winscp3 -s:input.txt > test.log

input.txt contains
open ftp.abcxyz.com
username
password

close
exit


On executing this it prompts me to enter the username and then the password and does not take them directly from the text file.
Any suggestions?

All these commands work when i type them individually. I'm using ver 3.74.
Kindly advise.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
DD wrote:
temp.bat contains
winscp3 -s:input.txt > test.log

Correct command would be:
Code:
winscp3.com /script=input.txt > test.log

Make sure you use winscp3.com, not .exe directly, otherwise the redirection to test.log will not work.

Please, read documentation
_________________
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