OK, I have added an example to the documentation:
https://winscp.net/eng/docs/scriptcommand_ls#examples
https://winscp.net/eng/docs/scriptcommand_ls#examples
ls
command takes only one parameter.
EIEPin
a folder name? Then it should be:
ls EIEPin/*.txt
Too many parameters for command 'ls'
"C:\Program Files (x86)\WinSCP\winscp.exe"/script=C:\AATemp\FTP_basFTPScript.txt /log="C:\AATemp\FTP_log.xml"
option batch on
option confirm off
open sftp://user:passwrd@sftp.sitename.co.nz -hostkey="ssh-rsa xxx="
ls EIEPin *.txt
Close
Exit
Too many parameters for command �ls�.