Re: Running custom commands always leads to error code 2
WinSCP is 32-bit application. In 64-bit Windows, 32-bit applications get redirects to 32-bit
See also https://winscp.net/eng/docs/integration_putty#win32-openssh
C:\Windows\SysWOW64
, when they try to access C:\Windows\System32
. If you want to access the 64-bit C:\Windows\System32
, you need to use C:\Windows\Sysnative
.
See also https://winscp.net/eng/docs/integration_putty#win32-openssh