Differences
This shows you the differences between the selected revisions of the page.
2018-08-20 | 2018-11-16 | ||
dotnet interwiki (martin) | link update + using link text styling (martin) | ||
Line 49: | Line 49: | ||
</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 ''[[ps>microsoft.powershell.core/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 [[ps>microsoft.powershell.core/about/about_automatic_variables#psscriptroot|''$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> |