Differences
This shows you the differences between the selected revisions of the page.
guide_custom_commands_automation 2020-02-18 | guide_custom_commands_automation 2022-10-21 (current) | ||
Line 33: | Line 33: | ||
When using the WinSCP .NET assembly from a [[library_powershell|PowerShell script]], the script needs to take parameters to be customized for a current session settings or selected file path, etc. | When using the WinSCP .NET assembly from a [[library_powershell|PowerShell script]], the script needs to take parameters to be customized for a current session settings or selected file path, etc. | ||
- | For that use ''param'' keyword. You can also mark a parameter as mandatory using ''[[https://docs.microsoft.com/en-us/powershell/scripting/developer/cmdlet/parameter-attribute-declaration|Parameter]]'' attribute or provide a default value. | + | For that use ''param'' keyword. You can also mark a parameter as mandatory using ''[[https://learn.microsoft.com/en-us/powershell/scripting/developer/cmdlet/parameter-attribute-declaration|Parameter]]'' attribute or provide a default value. |
<code powershell> | <code powershell> | ||
Line 96: | Line 96: | ||
Some real-life examples: | Some real-life examples: | ||
- | * [[library_example_verify_file_checksum|Verify checksum of a remote file against a local file over SFTP/FTP protocol]] | + | * [[library_example_verify_file_checksum|*]]; |
- | * [[library_example_find_duplicate_files|Find duplicate files in SFTP/FTP server]] | + | * [[library_example_find_duplicate_files|*]]; |
- | * [[library_example_recursive_search_text|Search recursively for text in remote directory / Grep files over SFTP/FTP protocol]] | + | * [[library_example_recursive_search_text|*]]. |
===== Using Scripting ===== | ===== Using Scripting ===== |