Differences
This shows you the differences between the selected revisions of the page.
script_download_files_to_same_folder 2019-04-01 | script_download_files_to_same_folder 2024-07-19 (current) | ||
Line 4: | Line 4: | ||
If you want to download all files (or all files matching a certain criteria) from the remote directory tree to the same local folder, it is more complicated. | If you want to download all files (or all files matching a certain criteria) from the remote directory tree to the same local folder, it is more complicated. | ||
- | ****===== Using WinSCP .NET Assembly =====**** | + | ===== Using WinSCP .NET Assembly ===== |
The following [[library_powershell|PowerShell]] script snippet enumerates all remote files matching a filemask, and downloads them one-by-one to the same local folder: | The following [[library_powershell|PowerShell]] script snippet enumerates all remote files matching a filemask, and downloads them one-by-one to the same local folder: | ||
Line 24: | Line 24: | ||
</code> | </code> | ||
- | ===== Using WinSCP scripting ===== | + | ===== [[script]] Using WinSCP scripting ===== |
It is too complicated to implement this task with a simple [[scripting]]. If you do not want to use the .NET assembly, you can at least download the remote directory tree as is, and then flatten it locally: | It is too complicated to implement this task with a simple [[scripting]]. If you do not want to use the .NET assembly, you can at least download the remote directory tree as is, and then flatten it locally: |