cant execute winscp3 using a batch file

Advertisement

DD
Guest

cant execute winscp3 using a batch file

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: cant execute winscp3 using a batch file

DD wrote:

temp.bat contains
winscp3 -s:input.txt > test.log
Correct command would be:
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

Reply with quote

Advertisement

You can post new topics in this forum