Differences
This shows you the differences between the selected revisions of the page.
2015-07-27 | 2016-02-22 | ||
Generate URL (martin) | extension file name (martin) | ||
Line 3: | Line 3: | ||
The following example uses [[library|WinSCP .NET assembly]] from a [[library_powershell|PowerShell]] script. If you have another preferred language, you can easily translate it. | The following example uses [[library|WinSCP .NET assembly]] from a [[library_powershell|PowerShell]] script. If you have another preferred language, you can easily translate it. | ||
- | You can use the script (e.g. ''verify.ps1'') [[guide_custom_commands_automation|from WinSCP GUI as a local custom command]]: | + | You can use the script (e.g. ''VerifyFileChecksum.ps1'') [[guide_custom_commands_automation|from WinSCP GUI as a local custom command]]: |
<code batch> | <code batch> | ||
- | powershell.exe -File C:\path\verify.ps1 -sessionUrl !S -localPath "!^!" -remotePath "!/!" -pause | + | powershell.exe -File C:\path\VerifyFileChecksum.ps1 -sessionUrl !S -localPath "!^!" -remotePath "!/!" -pause |
</code> | </code> | ||
Line 13: | Line 13: | ||
//Note that calculation of remote file checksum is supported with [[sftp|SFTP]] and [[ftp|FTP]] protocols only, subject to support of [[protocols|respective protocol extension]].// | //Note that calculation of remote file checksum is supported with [[sftp|SFTP]] and [[ftp|FTP]] protocols only, subject to support of [[protocols|respective protocol extension]].// | ||
- | <code powershell> | + | <code powershell VerifyFileChecksum.ps1> |
param ( | param ( | ||
# Use Generate URL function to obtain a value for -sessionUrl parameter. | # Use Generate URL function to obtain a value for -sessionUrl parameter. |