I want to get a directory listing of a remote directory into a textfile using a WINSCP script. I'm getting "too many parameters for ls command" message. I've concluded that redirection is not an option.
Will some wonderful expert please look at this and let me know how I can get a directory listing into a textfile using a WINSCP script? Thanks.
open ftp://<user>:<pwd>@<ip address>
cd <main folder>
cd <sub folder>
ls > listoffiles.txt