Thanks for sharing your solution (while I'm not really sure it was 32-bit vs. 64-bit issue, as you should be able to have both).
- martin
session = .OLEobject~New("WinSCP.Session")
Session.DebugLogPath
, to see what's happening "inside".
....
session = .OLEobject~New("WinSCP.Session")
session~SessionLogPath = "session.txt"
session~DebugLogPath = "debug.txt"
session~Open(sessionoptions)
...
session~SessionLogPath = "session.txt"
Session.SessionLogPath
or Session.DebugLogPath
?
/** REXX **/
protocol_sftp = 0
server = 'sftp.******.**'
port = 22
userid = '*******'
passwd = '*******'
hostkey = 'ssh-ed25519 256 ***********************************************'
Say 'Logging on to server.....'
sessionoptions = .OLEobject~New("WinSCP.SessionOptions")
SessionOptions~sshhostkeyfingerprint = hostkey
SessionOptions~hostname = server
SessionOptions~username = userid
SessionOptions~password = passwd
SessionOptions~portnumber = port
SessionOptions~Protocol = protocol_sftp
session = .OLEobject~New("WinSCP.Session")
session~Open(sessionoptions)
Say session~Homepath
*-* Compiled method "UNKNOWN" with scope "OLEObject".
23 *-* session~Open(sessionoptions)
Error 92 running z:\winscp-test\test.rex line 23: OLE error.
Error 92.901: An unknown OLE error occurred (HRESULT=80070057).
E_INVALIDARG One or more arguments are not valid