Error : Error skipping startup message. Your shell is probably incompatible with the application
Hello, I'm trying to run WinSCP from a VBS script, but I have the following error when I open the session:
Note: the enum are not recognized, so I replace it the the corresponding value, found in the source code:Connection has been unexpectedly closed. Server sent command exit status 1.
Error skipping startup message. Your shell is probably incompatible with the application (BASH is recommended).
' Setup session options Dim sessionOptions Set sessionOptions = CreateObject("WinSCP.SessionOptions") With sessionOptions .Protocol = 1 'Protocol_Sftp .HostName = "toto.com" .UserName = "toto" .Password = "abvc" .SshHostKeyFingerprint = "sshxxxxxx" End With Dim session Set session = CreateObject("WinSCP.Session") ' Connect session.Open sessionOptions ' >> ERROR ! ' Upload files Dim transferOptions Set transferOptions = CreateObject("WinSCP.TransferOptions") transferOptions.TransferMode = 0 'TransferMode_Binary Dim transferResult Set transferResult = session.PutFiles(vtFolderName & vFileName, "/data/", False, transferOptions)