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

Author Message
Willie

Guest


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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
You may use only WinSCP scripting commands after /command. Why doesn't "call" work?
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License