Differences
This shows you the differences between the selected revisions of the page.
| library_example_remember_downloaded_files 2020-08-21 | library_example_remember_downloaded_files 2022-06-16 (current) | ||
| Line 6: | Line 6: | ||
| To run the script manually or to [[guide_schedule|schedule it]], use: | To run the script manually or to [[guide_schedule|schedule it]], use: | ||
| - | <code batch> | + | <code> |
| - | powershell.exe -File C:\path\DownloadNewFiles.ps1 -sessionUrl "sftp://username:password;fingerprint=ssh-rsa-xx-xx-xx@example.com/" -localPath "C:\local\dest" -remotePath "/remote/source" -listPath "C:\path\downloaded.txt" | + | powershell.exe -File C:\path\DownloadNewFiles.ps1 -sessionUrl "sftp://username:password;fingerprint=ssh-rsa-xxxxxxxxxxx...@example.com/" -localPath "C:\local\dest" -remotePath "/remote/source" -listPath "C:\path\downloaded.txt" |
| </code> | </code> | ||
| Line 32: | Line 32: | ||
| param ( | param ( | ||
| # Use Generate Session URL function to obtain a value for -sessionUrl parameter. | # Use Generate Session URL function to obtain a value for -sessionUrl parameter. | ||
| - | $sessionUrl = "sftp://user:mypassword;fingerprint=ssh-rsa-xx-xx-xx@example.com/", | + | $sessionUrl = "sftp://user:mypassword;fingerprint=ssh-rsa-xxxxxxxxxxx...@example.com/", |
| [Parameter(Mandatory = $True)] | [Parameter(Mandatory = $True)] | ||
| $localPath, | $localPath, | ||