Differences

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

library_example_remember_downloaded_files 2019-10-15 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,
Line 144: Line 144:
===== [[options]] Options ===== ===== [[options]] Options =====
 +
==== Run time ==== ==== Run time ====
The first two input boxes specify source remote and destination local folder. These will be filled with paths to the current remote and local directories. The first two input boxes specify source remote and destination local folder. These will be filled with paths to the current remote and local directories.

Last modified: by martin