.Net Library - Specify the WinSCP.exe Path
I currently have WinSCP 5.17.8 installed in
I wanted to test the .Net library for 5.18 beta, so I downloaded it and extracted to
In a PowerShell script I load the library as follows:
The script appears to be using WinSCP Version 5.17.8 in
How can I force the WinSCP .Net library to use
C:\Program Files (x86)\WinSCP
.
I wanted to test the .Net library for 5.18 beta, so I downloaded it and extracted to
C:\Bitbucket\WinSCP-5.18.beta-Automation
.
In a PowerShell script I load the library as follows:
Add-Type -Path "C:\Bitbucket\WinSCP-5.18.beta-Automation\WinSCPnet.dll"
C:\Program Files (x86)\WinSCP
instead of 5.18 beta in C:\Bitbucket\WinSCP-5.18.beta-Automation
, see log excerpt:
. 2020-12-28 16:46:56.175 WinSCP Version 5.17.8 (Build 10803) (OS 10.0.18363 - Windows 10 Enterprise) . 2020-12-28 16:46:56.175 Configuration: nul . 2020-12-28 16:46:56.175 Log level: Normal . 2020-12-28 16:46:56.175 Local account: SANBOX01\TheCliGuy . 2020-12-28 16:46:56.175 Working directory: C:\Program Files (x86)\WinSCP . 2020-12-28 16:46:56.175 Process ID: 1496 . 2020-12-28 16:46:56.175 Command-line: "C:\Program Files (x86)\WinSCP\winscp.exe" /xmllog="C:\Users\TheCliGuy\AppData\Local\Temp\wscp2028.00C40AE0.tmp" /xmlgroups /xmllogrequired /nointeractiveinput /dotnet=5.17.8 /ini=nul /log="C:\Bitbucket\WinSCP-Testing\winscp-20201228-164656.log" /console /consoleinstance=_8232_41281898_190
C:\Bitbucket\WinSCP-5.18.beta-Automation\WinSCP.exe
?