How to redirect a directory listing to a file?

Advertisement

dmaschino
Joined:
Posts:
1
Location:
Michigan

How to redirect a directory listing to a file?

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.

Thanks

-David

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum