Differences
This shows you the differences between the selected revisions of the page.
| 2016-03-16 | 2016-03-18 | ||
| replacing confusing link to scripting#variables with local_path (martin) | one more link to library_powershell (martin) | ||
| Line 26: | Line 26: | ||
| ==== Parametrized PowerShell Script ==== | ==== Parametrized PowerShell Script ==== | ||
| - | When using WinSCP .NET assembly from a 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://msdn.microsoft.com/en-us/library/ms714348.aspx|Parameter]]'' attribute or provide a default value. | For that use ''param'' keyword. You can also mark a parameter as mandatory using ''[[https://msdn.microsoft.com/en-us/library/ms714348.aspx|Parameter]]'' attribute or provide a default value. | ||