Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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
DD

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.