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: /Command LS doesn't return my list of the files or subdirs

You may use only WinSCP scripting commands after /command. Why doesn't "call" work?
Willie

/Command LS doesn't return my list of the files or subdirs

I am trying to get a file list from the server via
"C:\Program Files\WinSCP\WinSCP.exe" MySESSION /command "ls -l * >test.txt" "exit" /log=test.log

But test.txt was not generated. Is something wrong?
It works if I use "call ls -l * >test.txt" on /script=test.spt. But the remote server doesn't allow CALL command.

Any idea?

Thanks,
Huili