Differences
This shows you the differences between the selected revisions of the page.
2017-02-06 | 2017-02-06 | ||
normalizing link (martin) | normalizing link (martin) | ||
Line 45: | Line 45: | ||
</code> | </code> | ||
- | Had you need to run the script from other directory, you need to specify a full path to the assembly. You can derive the path from the script file path using ''[[https://msdn.microsoft.com/en-us/powershell/reference/5.1/Microsoft.PowerShell.Core/about/about_Automatic_Variables|$PSScriptRoot]]'' automatic variable:((In PowerShell 2.0, use ''%%Add-Type -Path (Join-Path (Split-Path $script:MyInvocation.MyCommand.Path) "WinSCPnet.dll")%%'')) | + | Had you need to run the script from other directory, you need to specify a full path to the assembly. You can derive the path from the script file path using ''[[https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.core/about/about_automatic_variables|$PSScriptRoot]]'' automatic variable:((In PowerShell 2.0, use ''%%Add-Type -Path (Join-Path (Split-Path $script:MyInvocation.MyCommand.Path) "WinSCPnet.dll")%%'')) |
<code powershell> | <code powershell> |