Issuing List command to remote directory and output to file
I am trying to output the results of a list remote directory command to a text file but I'm getting an error
Here is the command line:Too many parameters for command 'ls'
"C:\Program Files\Winscp\winscp.exe" /console /script=D:\FTP\listtest.txt
option batch on option confirm off open BoxIT ls /Home/boxit-BDOHR/Test >D:\FTP\lists.txt ls /Home/boxit-BDOHR/Test2 >D:\FTP\lists2.txt close exit
If I run the command without the > string then it runs fine, is there a different notation for outputting the results to a file...?Too many parameters for command "ls".
Using WinSCP 4.2.5 on Windows XP.