Differences

This shows you the differences between the selected revisions of the page.

script_download_timestamped_filename 2017-10-04 script_download_timestamped_filename 2022-06-16 (current)
Line 1: Line 1:
-====== [[download_timestamped_filename]] Downloading file to timestamped-filename ======+====== Downloading file to timestamped-filename ======
-===== Using WinSCP .NET Assembly =====+===== [[library]] Using WinSCP .NET Assembly =====
Use [[library|WinSCP .NET assembly]] from your favorite language. Use relevant construct of your language or API of your runtime environment for the file name formatting. Use [[library|WinSCP .NET assembly]] from your favorite language. Use relevant construct of your language or API of your runtime environment for the file name formatting.
Line 24: Line 24:
        UserName = "user"         UserName = "user"
        Password = "mypassword"         Password = "mypassword"
-        SshHostKeyFingerprint = "ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"+        SshHostKeyFingerprint = "ssh-rsa 2048 xxxxxxxxxxx..."
    }     }
Line 50: Line 50:
    exit 0     exit 0
} }
-catch [Exception]+catch
{ {
    Write-Host "Error: $($_.Exception.Message)"     Write-Host "Error: $($_.Exception.Message)"

Last modified: by martin