Topic "Get file from remote server and verify hash then delete"

Author Message
[View user's profile]

Joined: 2012-10-26
Posts: 1
Hi, I have a quick question

I need to get a file with a script from a scp server then verify the transfer or file then delete it. I got a script working for the get and delete but could not find any documentation on how to do a verify.

I have these commands for the get and delete part

get -delete /home/file) c:\file

But im wondering is there any way to verify the file transfer was successful before the deletion of the file on the server side? Like a hash function or something.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24759
Location: Prague, Czechia
There's no build-in hash function.
You might be able to use call command to execute remote-side command to calculate hash.
Martin Prikryl

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License