Posted: 2007-08-28 17:54
Is there any way to perform a 'ls' on a remote site and have the output redirect to a file? I am connecting via command line for example:
"C:\Program Files\WinSCP3\WinSCP3.exe" FTPhost "/defaults /command dir"
I have tried redirecting by appending "> C:\test" as well as passing the entire command to "cmd /c" but I never get output.
The previous "How to redirect terminal output of winscp3.com to file" topic doesn't seem to work for me.
WinSCP is 3.8.2, connecting via SFTP(v3)
Running Windows XP Professional SP2.
As an aside I am able to both send and receive files using the above site and get/put syntax so I know that works.
There has to be a way to get at the directory contents.
Location: Prague, Czechia
You need to use winscp3.com executable instead of winscp3.exe. See documentation.
You can post new topics in this forum
And it's free!