Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Dir listing and MD5 checksums - command line interface

CHARLES29020 wrote:

I have two questions. I am using the WinSCP.com utility to automate file transfers. I would also like to use it to get directory listings (directory structure) of the remote locations saved back to the client computer as a text file or as XML, is this possible?

You can use "ls" command with XML logging
https://winscp.net/eng/docs/scriptcommand_ls
https://winscp.net/eng/docs/logging_xml

Or use .NET assembly to collect structure and save it to a file:
https://winscp.net/eng/docs/library_session_listdirectory

Is it possible to generate a MD5 checksum of files on the client computer and the remote computer (host) computer and save the MD5 checksums as text or XML?

No. Actually even in the GUI you are limited to servers that support generating MD5 and there are only few.
CHARLES29020

Dir listing and MD5 checksums - command line interface

Hello,

I have two questions. I am using the WinSCP.com utility to automate file transfers. I would also like to use it to get directory listings (directory structure) of the remote locations saved back to the client computer as a text file or as XML, is this possible?

Is it possible to generate a MD5 checksum of files on the client computer and the remote computer (host) computer and save the MD5 checksums as text or XML?

I know that I can generate both from the graphical client (WinSCP.exe) but could not find information in the documentation about doing these things using the command line interface (WinSCP.com).

Thanks,

Charles