/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
"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