Dir listing and MD5 checksums - command line interface

Advertisement

CHARLES29020
Guest

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,441
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum