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

Advertisement

Willie
Guest

/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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,227
Location:
Prague, Czechia

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?
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum