Re: SFTP avec PowerBuilder et WinSCP.DLL
Thanks for sharing your solution.
// Sources :
// https://winscp.net/
integer li_rc
// RAZ des indicateurs
cbx_winscpsession.Checked = FALSE
cbx_sessionsoptions.Checked = FALSE
cbx_port.Checked = FALSE
cbx_open.Checked = FALSE
cbx_opttrsf.Checked = FALSE
cbx_getfile.Checked = FALSE
// Créer l'objet COM de session
cbx_winscpsession.ThirdState = TRUE
OLEObject ole_winscp
ole_winscp = create OLEObject
IF ole_winscp.ConnectToNewObject("WinSCP.Session") <> 0 THEN
MessageBox("Erreur ConnectToNewObject()", "Impossible de créer un objet COM [WinSCP.Session]")
RETURN
END IF
cbx_winscpsession.Checked = TRUE
// Créer l'ojet SessionOptions pour paramétrer les options de session
cbx_sessionsoptions.ThirdState = TRUE
OLEObject ole_sessionOptions
ole_sessionOptions = create OLEObject
IF ole_sessionOptions.ConnectToNewObject("WinSCP.SessionOptions") <> 0 THEN
MessageBox("Erreur ConnectToNewObject()", "Impossible de créer un objet COM [WinSCP.SessionOptions]")
RETURN
END IF
cbx_sessionsoptions.Checked = TRUE
// Ouverture de la session
cbx_open.ThirdState = TRUE
// Initialisation des propriétés de la classe [Session]
// Retourne la date système au format DATETIME (le référentiel est le serveur Linux)
datetime vldt_dateheure
String vls_indic
vls_indic = String(Now(), "YYYYMMDD.hhmmss")
sle_indic.Text = vls_indic
ole_winscp.SessionLogPath = "C:\_avirer\SFTP\SFTP.powerbuilder." + vls_indic + ".log"
ole_winscp.DebugLogPath = "C:\_avirer\SFTP\SFTP.powerbuilder." + vls_indic + ".deb"
ole_winscp.ExecutablePath = "C:\Program Files (x86)\WinSCP\WinSCP.EXE"
// Initialiser les propriétés de la classe [SessionOptions]
IF Trim(sle_protocole.text) <> "" THEN
// 0=SFTP 1=??? 2=??? 3=Webdav 4=S3
ole_sessionOptions.Protocol = Integer(sle_protocole.Text)
END IF
ole_sessionOptions.HostName = sle_ip.Text
//ole_sessionOptions.PortNumber = Long(sle_port.Text)
IF Integer(sle_port.Text) > 0 THEN
ole_sessionOptions.PortNumber = Integer(sle_port.Text)
cbx_port.Checked = TRUE
END IF
ole_sessionOptions.UserName = sle_user.Text
ole_sessionOptions.Password = sle_mdp.Text
//ole_sessionOptions.TimeoutInMilliseconds = 5000
ole_sessionOptions.SshHostKeyFingerprint = "xx:xx:xx:aa:bb:cc:dd:ee:ff:aa:ff:75:9d:51:ae:1f"
// Ouverture de la session
ole_winscp.Open(ole_sessionOptions)
//IF ole_winscp.Open(ole_sessionOptions) <> 0 THEN
// MessageBox("Erreur Open()", "Impossible d'ouvrir une session")
// RETURN
//END IF
cbx_open.Checked = TRUE
// Télécharger un fichier
cbx_opttrsf.ThirdState = TRUE
OLEObject ole_transferOptions
ole_transferOptions = create OLEObject
IF ole_transferOptions.ConnectToNewObject("WinSCP.TransferOptions") <> 0 THEN
MessageBox("Erreur ConnectToNewObject()", "Impossible de définir les options de transfert [WinSCP.TransferOptions]")
RETURN
END IF
cbx_opttrsf.Checked = TRUE
// Récupération du fichier
cbx_getfile.ThirdState = TRUE
OLEObject ole_transferResult
FileDelete(sle_local.Text)
ole_transferResult = ole_winscp.GetFiles(sle_distant.Text, sle_local.Text, False, ole_transferOptions)
IF FileExists(sle_local.Text) = FALSE THEN
MessageBox("Erreur de transfert", "Le fichier ["+sle_local.text+" n'est pas présent")
RETURN
END IF
cbx_getfile.Checked = TRUE
// Vérifier le résultat du transfert
ole_transferResult.Check()
// Fermer la session
ole_winscp.Close()
// Libérer les objets COM
ole_transferOptions.DisconnectObject()
ole_sessionOptions.DisconnectObject()
ole_winscp.DisconnectObject()
DESTROY ole_transferOptions
DESTROY ole_sessionOptions
DESTROY ole_winscp
Open()
SshHostKeyFingerprint
Session.Open
with zero:
IF ole_winscp.Open(ole_sessionOptions) <> 0 THEN
Session.Open
does not return anything.
. 2025-04-17 18:00:14.835 [b]Transfer Protocol: SFTP[/b]
SshHostKeyFingerprint
. J'ai trouvé comment le faire avec WinSCP.
Open()
.
sessionOptions
:
Protocol = 0 (integer)
HostName = IP (string)
PortNumber = 9022 (integer)
UserName = NOMUSER (string)
Password = MOTDEPASSE (string)
TimeoutInMilliseconds = 5000
SshHostKeyFingerprint = "aa:bb:cc:dd:ee:dd:2a:47:c3:7b:67:75:9d:51:ae:1f" (string)
SessionLogPath
& DebugLogPath
).
0
, not 2
.
[2025-04-14 15:38:46.461] [0001] .NET Framework build
[2025-04-14 15:38:46.461] [0001] Executing assembly: WinSCPnet, Version=1.16.0.16288, Culture=neutral, PublicKeyToken=2271ec4a3c56d0bf
[2025-04-14 15:38:46.461] [0001] Executing assembly codebase: file:///C:/Program Files (x86)/WinSCP/WinSCPnet.DLL
[2025-04-14 15:38:46.461] [0001] Executing assembly location: C:\Program Files (x86)\WinSCP\WinSCPnet.dll
[2025-04-14 15:38:46.461] [0001] Entry Assembly: unmanaged
[2025-04-14 15:38:46.461] [0001] Operating system: Microsoft Windows NT 6.2.9200.0
[2025-04-14 15:38:46.461] [0001] Bitness: 32-bit
[2025-04-14 15:38:46.461] [0001] Timezone: +02:00; Paris, Madrid (heure d’été)
[2025-04-14 15:38:46.461] [0001] User: VMA@ID_INFO@DELL-BPP1XM2; Interactive: True
[2025-04-14 15:38:46.461] [0001] Runtime: 4.0.30319.42000
[2025-04-14 15:38:46.461] [0001] Console encoding: Input: Europe de l'Ouest (Windows) (1252); Output: Europe de l'Ouest (Windows) (1252)
[2025-04-14 15:38:46.461] [0001] Working directory: T:\Sources\iD200\pbl2021
[2025-04-14 15:38:46.461] [0001] Assembly path: C:\Program Files (x86)\WinSCP\WinSCPnet.DLL
[2025-04-14 15:38:46.461] [0001] Assembly product version: 6.5.0.0
[2025-04-14 15:38:46.461] [0001] Process path: C:\Program Files (x86)\Appeon\PowerBuilder 21.0\PB210.exe
[2025-04-14 15:38:46.461] [0001] Invoking member DebugLogPath enabled debug logging
[2025-04-14 15:38:46.461] [0001] Result [] [null]
[2025-04-14 15:38:46.461] [0001] Session.System.Reflection.IReflect.InvokeMember entering
[2025-04-14 15:38:46.461] [0001] Name [ExecutablePath]
[2025-04-14 15:38:46.461] [0001] BindingFlags [PutDispProperty, OptionalParamBinding]
[2025-04-14 15:38:46.461] [0001] Binder [System.OleAutBinder]
[2025-04-14 15:38:46.461] [0001] Target [WinSCP.Session]
[2025-04-14 15:38:46.461] [0001] Args [1] [null]
[2025-04-14 15:38:46.461] [0001] Arg [0] [C:\Program Files (x86)\WinSCP\WinSCP.EXE] [C:\Program Files (x86)\WinSCP\WinSCP.EXE] [System.String]
[2025-04-14 15:38:46.461] [0001] Culture [en-US]
[2025-04-14 15:38:46.461] [0001] Setting unambiguous property [System.String ExecutablePath]
[2025-04-14 15:38:46.461] [0001] Result [] [null]
[2025-04-14 15:38:46.461] [0001] Session.System.Reflection.IReflect.InvokeMember leaving
[2025-04-14 15:38:46.461] [0001] Session.System.Reflection.IReflect.InvokeMember entering
[2025-04-14 15:38:46.461] [0001] Name [Open]
[2025-04-14 15:38:46.461] [0001] BindingFlags [InvokeMethod, OptionalParamBinding]
[2025-04-14 15:38:46.461] [0001] Binder [System.OleAutBinder]
[2025-04-14 15:38:46.461] [0001] Target [WinSCP.Session]
[2025-04-14 15:38:46.461] [0001] Args [1] [null]
[2025-04-14 15:38:46.461] [0001] Arg [0] [NOMUSER@12.34.56.78] [NOMUSER@12.34.56.78] [WinSCP.SessionOptions]
[2025-04-14 15:38:46.461] [0001] Culture [en-US]
[2025-04-14 15:38:46.461] [0001] Invoking unambiguous method [Void Open(WinSCP.SessionOptions)]
[2025-04-14 15:38:46.461] [0001] Session.Open entering
[2025-04-14 15:38:46.461] [0001] Session.SetupTempPath entering
[2025-04-14 15:38:46.461] [0001] Temporary folder: C:\Users\vma\AppData\Local\Temp\
[2025-04-14 15:38:46.467] [0001] Temporary file [C:\Users\vma\AppData\Local\Temp\wscp0504.0141B42A.tmp] - Exists [False]
[2025-04-14 15:38:46.467] [0001] Session.SetupTempPath leaving
[2025-04-14 15:38:46.467] [0001] ExeSessionProcess..ctor entering
[2025-04-14 15:38:46.467] [0001] ExeSessionProcess.GetExecutablePath entering
[2025-04-14 15:38:46.467] [0001] ExeSessionProcess.GetExecutablePath leaving
[2025-04-14 15:38:46.467] [0001] EXE executable path resolved to C:\Program Files (x86)\WinSCP\WinSCP.EXE
[2025-04-14 15:38:46.467] [0001] ExeSessionProcess.CheckVersion entering
[2025-04-14 15:38:46.467] [0001] Timestamp of C:\Program Files (x86)\WinSCP\WinSCP.EXE is 31/03/2025 11:57:44
[2025-04-14 15:38:46.467] [0001] Cached version of C:\Program Files (x86)\WinSCP\WinSCP.EXE is 6.5.0.16288, product WinSCP version is 6.5.0.0, and it was already deemed compatible
[2025-04-14 15:38:46.467] [0001] ExeSessionProcess.CheckVersion leaving
[2025-04-14 15:38:46.467] [0001] ExeSessionProcess..ctor leaving
[2025-04-14 15:38:46.467] [0001] ExeSessionProcess.Start entering
[2025-04-14 15:38:46.467] [0001] ExeSessionProcess.InitializeConsole entering
[2025-04-14 15:38:46.467] [0001] Trying event _1284_55530882_82
[2025-04-14 15:38:46.467] [0001] Creating event WinSCPConsoleEventRequest_1284_55530882_82
[2025-04-14 15:38:46.467] [0001] Created event WinSCPConsoleEventRequest_1284_55530882_82 with handle 3268 with security none, new True
[2025-04-14 15:38:46.467] [0001] Event _1284_55530882_82 is unique
[2025-04-14 15:38:46.467] [0001] Creating event WinSCPConsoleEventResponse_1284_55530882_82
[2025-04-14 15:38:46.467] [0001] Created event WinSCPConsoleEventResponse_1284_55530882_82 with handle 3144 with security none, new True
[2025-04-14 15:38:46.467] [0001] Creating event WinSCPConsoleEventCancel_1284_55530882_82
[2025-04-14 15:38:46.467] [0001] Created event WinSCPConsoleEventCancel_1284_55530882_82 with handle 2856 with security none, new True
[2025-04-14 15:38:46.467] [0001] Job created
[2025-04-14 15:38:46.467] [0001] Job set to kill all processes
[2025-04-14 15:38:46.467] [0001] ExeSessionProcess.InitializeConsole leaving
[2025-04-14 15:38:46.467] [0001] ExeSessionProcess.InitializeChild entering
[2025-04-14 15:38:46.467] [0001] Starting "C:\Program Files (x86)\WinSCP\WinSCP.EXE" /xmllog="C:\Users\vma\AppData\Local\Temp\wscp0504.0141B42A.tmp" /xmlgroups /xmllogrequired /nointeractiveinput /stdout /stdin /dotnet=6.5.0 /ini=nul /log="C:\_avirer\SFTP\SFTP.powerbuilder.20250414.153846.log" /console /consoleinstance=_1284_55530882_82
[2025-04-14 15:38:46.467] [0001] Started process 10012
[2025-04-14 15:38:46.467] [0001] ExeSessionProcess.InitializeChild leaving
[2025-04-14 15:38:46.467] [0001] ExeSessionProcess.Start leaving
[2025-04-14 15:38:46.467] [0001] Command: [option batch on]
[2025-04-14 15:38:46.467] [0006] ExeSessionProcess.ProcessEvents entering
[2025-04-14 15:38:46.467] [0001] ExeSessionProcess.ExecuteCommand entering
[2025-04-14 15:38:46.467] [0001] ExeSessionProcess.ExecuteCommand leaving
[2025-04-14 15:38:46.467] [0001] Command: [option confirm off]
[2025-04-14 15:38:46.467] [0001] ExeSessionProcess.ExecuteCommand entering
[2025-04-14 15:38:46.467] [0001] ExeSessionProcess.ExecuteCommand leaving
[2025-04-14 15:38:46.467] [0001] Command: [option reconnecttime 120]
[2025-04-14 15:38:46.467] [0001] ExeSessionProcess.ExecuteCommand entering
[2025-04-14 15:38:46.467] [0001] ExeSessionProcess.ExecuteCommand leaving
[2025-04-14 15:38:46.467] [0001] Session.SessionOptionsToUrlAndSwitches entering
[2025-04-14 15:38:46.467] [0001] Session.SessionOptionsToSwitches entering
[2025-04-14 15:38:46.467] [0001] Exception: System.ArgumentException: SessionOptions.Protocol is Protocol.Sftp or Protocol.Scp, but SessionOptions.SshHostKeyFingerprint is not set.
[2025-04-14 15:38:46.467] [0001] Session.SessionOptionsToSwitches leaving
[2025-04-14 15:38:46.467] [0001] Session.SessionOptionsToUrlAndSwitches leaving
[2025-04-14 15:38:46.467] [0001] Exception: System.ArgumentException: SessionOptions.Protocol is Protocol.Sftp or Protocol.Scp, but SessionOptions.SshHostKeyFingerprint is not set.
à WinSCP.Session.SessionOptionsToSwitches(SessionOptions sessionOptions, Boolean scanFingerprint, String& arguments, String& logArguments)
à WinSCP.Session.SessionOptionsToUrlAndSwitches(SessionOptions sessionOptions, Boolean scanFingerprint, String& command, String& log)
à WinSCP.Session.Open(SessionOptions sessionOptions)
[2025-04-14 15:38:46.467] [0001] Session.Cleanup entering
[2025-04-14 15:38:46.467] [0001] Terminating process
[2025-04-14 15:38:46.467] [0001] Command: [exit]
[2025-04-14 15:38:46.467] [0001] ExeSessionProcess.ExecuteCommand entering
[2025-04-14 15:38:46.467] [0001] ExeSessionProcess.ExecuteCommand leaving
[2025-04-14 15:38:46.467] [0001] ExeSessionProcess.Close entering
[2025-04-14 15:38:46.467] [0001] Waiting for process to exit (2000 ms)
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessEvent entering
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessInitEvent entering
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessInitEvent leaving
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessEvent entering
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessTitleEvent entering
[2025-04-14 15:38:46.568] [0006] Not-supported title event [WinSCP]
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessTitleEvent leaving
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessEvent entering
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessTitleEvent entering
[2025-04-14 15:38:46.568] [0006] Not-supported title event [WinSCP]
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessTitleEvent leaving
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessEvent entering
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessEvent entering
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessInputEvent entering
[2025-04-14 15:38:46.568] [0006] Scheduling output: [winscp> option batch on]
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessInputEvent leaving
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessEvent entering
[2025-04-14 15:38:46.568] [0006] Scheduling output: [batch on ]
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessEvent entering
[2025-04-14 15:38:46.568] [0006] Scheduling output: [reconnecttime 120 ]
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessEvent entering
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessTitleEvent entering
[2025-04-14 15:38:46.568] [0006] Not-supported title event [WinSCP]
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessTitleEvent leaving
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessEvent entering
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessEvent entering
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessInputEvent entering
[2025-04-14 15:38:46.568] [0006] Scheduling output: [winscp> option confirm off]
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessInputEvent leaving
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessEvent entering
[2025-04-14 15:38:46.568] [0006] Scheduling output: [confirm off ]
[2025-04-14 15:38:46.568] [0006] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 15:38:46.583] [0006] ExeSessionProcess.ProcessEvent entering
[2025-04-14 15:38:46.583] [0006] ExeSessionProcess.ProcessTitleEvent entering
[2025-04-14 15:38:46.583] [0006] Not-supported title event [WinSCP]
[2025-04-14 15:38:46.583] [0006] ExeSessionProcess.ProcessTitleEvent leaving
[2025-04-14 15:38:46.583] [0006] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 15:38:46.583] [0006] ExeSessionProcess.ProcessEvent entering
[2025-04-14 15:38:46.583] [0006] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 15:38:46.583] [0006] ExeSessionProcess.ProcessEvent entering
[2025-04-14 15:38:46.583] [0006] ExeSessionProcess.ProcessInputEvent entering
[2025-04-14 15:38:46.583] [0006] Scheduling output: [winscp> option reconnecttime 120]
[2025-04-14 15:38:46.583] [0006] ExeSessionProcess.ProcessInputEvent leaving
[2025-04-14 15:38:46.583] [0006] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 15:38:46.583] [0006] ExeSessionProcess.ProcessEvent entering
[2025-04-14 15:38:46.583] [0006] Scheduling output: [reconnecttime 120 ]
[2025-04-14 15:38:46.583] [0006] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 15:38:46.583] [0006] ExeSessionProcess.ProcessEvent entering
[2025-04-14 15:38:46.583] [0006] ExeSessionProcess.ProcessTitleEvent entering
[2025-04-14 15:38:46.583] [0006] Not-supported title event [WinSCP]
[2025-04-14 15:38:46.583] [0006] ExeSessionProcess.ProcessTitleEvent leaving
[2025-04-14 15:38:46.583] [0006] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 15:38:46.583] [0006] ExeSessionProcess.ProcessEvent entering
[2025-04-14 15:38:46.583] [0006] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 15:38:46.583] [0006] ExeSessionProcess.ProcessEvent entering
[2025-04-14 15:38:46.583] [0006] ExeSessionProcess.ProcessInputEvent entering
[2025-04-14 15:38:46.583] [0006] Scheduling output: [winscp> exit]
[2025-04-14 15:38:46.583] [0006] ExeSessionProcess.ProcessInputEvent leaving
[2025-04-14 15:38:46.583] [0006] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 15:38:46.800] [0001] ExeSessionProcess.Close leaving
[2025-04-14 15:38:46.800] [0001] ExeSessionProcess.Dispose entering
[2025-04-14 15:38:46.884] [0006] Aborted
[2025-04-14 15:38:46.884] [0006] ExeSessionProcess.ProcessEvents leaving
[2025-04-14 15:38:46.884] [0001] Closing job
[2025-04-14 15:38:46.884] [0001] ExeSessionProcess.Dispose leaving
[2025-04-14 15:38:46.884] [0001] Disposing log readers
[2025-04-14 15:38:46.884] [0001] Session.Cleanup leaving
[2025-04-14 15:38:46.884] [0001] Session.Open leaving
[2025-04-14 15:38:46.884] [0001] Error [System.Reflection.TargetInvocationException: Une exception a été levée par la cible d'un appel. ---> System.ArgumentException: SessionOptions.Protocol is Protocol.Sftp or Protocol.Scp, but SessionOptions.SshHostKeyFingerprint is not set.
à WinSCP.Session.SessionOptionsToSwitches(SessionOptions sessionOptions, Boolean scanFingerprint, String& arguments, String& logArguments)
à WinSCP.Session.SessionOptionsToUrlAndSwitches(SessionOptions sessionOptions, Boolean scanFingerprint, String& command, String& log)
à WinSCP.Session.Open(SessionOptions sessionOptions)
--- Fin de la trace de la pile d'exception interne ---
à System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
à System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
à System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
à WinSCP.Session.System.Reflection.IReflect.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters)]
[2025-04-14 15:38:46.884] [0001] Session.System.Reflection.IReflect.InvokeMember leaving
. 2025-04-14 15:36:16.189 --------------------------------------------------------------------------
. 2025-04-14 15:36:16.189 WinSCP Version 6.5 (Compilation 16288 2025-03-31) (OS 10.0.19045 – Windows 10 Pro)
. 2025-04-14 15:36:16.189 Configuration: nul
. 2025-04-14 15:36:16.189 Log level: Normal
. 2025-04-14 15:36:16.189 Local account: ID_INFO\VMA
. 2025-04-14 15:36:16.189 Working directory: C:\Program Files (x86)\WinSCP
. 2025-04-14 15:36:16.189 Process ID: 13000
. 2025-04-14 15:36:16.204 Ancestor processes: PB210, explorer, ...
. 2025-04-14 15:36:16.204 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.EXE" /xmllog="C:\Users\vma\AppData\Local\Temp\wscp0504.0165F26B.tmp" /xmlgroups /xmllogrequired /nointeractiveinput /stdout /stdin /dotnet=6.5.0 /ini=nul /log="C:\_avirer\SFTP\SFTP.powerbuilder.20250414.153616.log" /console /consoleinstance=_1284_9799115_539
. 2025-04-14 15:36:16.204 Time zone: Current: GMT+2, Standard: GMT+1 (Paris, Madrid), DST: GMT+2 (Paris, Madrid (heure d’été)), DST Start: 30/03/2025, DST End: 26/10/2025
. 2025-04-14 15:36:16.204 Login time: lundi 14 avril 2025 15:36:16
. 2025-04-14 15:36:16.204 --------------------------------------------------------------------------
. 2025-04-14 15:36:16.204 Script: Retrospectively logging previous script records:
> 2025-04-14 15:36:16.204 Script: option batch on
< 2025-04-14 15:36:16.204 Script: batch on
< 2025-04-14 15:36:16.204 Script: reconnecttime 120
> 2025-04-14 15:36:16.204 Script: option confirm off
< 2025-04-14 15:36:16.204 Script: confirm off
> 2025-04-14 15:36:16.204 Script: option reconnecttime 120
< 2025-04-14 15:36:16.204 Script: reconnecttime 120
> 2025-04-14 15:36:16.204 Script: open [b]ftp[/b]://NOMUSER:***@12.34.56.78:9022 -passive=1 -timeout=5
. 2025-04-14 15:36:16.204 --------------------------------------------------------------------------
. 2025-04-14 15:36:16.204 Session name: NOMUSER@12.34.56.78 (Ad-Hoc site)
. 2025-04-14 15:36:16.204 Host name: 12.34.56.78 (Port: 9022)
. 2025-04-14 15:36:16.204 User name: NOMUSER (Password: Yes, Key file: No, Passphrase: No)
. 2025-04-14 15:36:16.204 Transfer Protocol: FTP
. 2025-04-14 15:36:16.204 Ping type: Dummy, Ping interval: 30 sec; Timeout: 5 sec
. 2025-04-14 15:36:16.204 Disable Nagle: No
. 2025-04-14 15:36:16.204 Proxy: None
. 2025-04-14 15:36:16.204 Send buffer: 262144
. 2025-04-14 15:36:16.204 UTF: Auto
. 2025-04-14 15:36:16.204 FTPS: None [Client certificate: No]
. 2025-04-14 15:36:16.204 FTP: Passive: Yes [Force IP: Auto]; MLSD: Auto [List all: Auto]; HOST: Auto
. 2025-04-14 15:36:16.204 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2025-04-14 15:36:16.204 Cache directory changes: Yes, Permanent: Yes
. 2025-04-14 15:36:16.204 Recycle bin: Delete to: No, Overwritten to: No, Bin path:
. 2025-04-14 15:36:16.204 Timezone offset: 0h 0m
. 2025-04-14 15:36:16.204 --------------------------------------------------------------------------
< 2025-04-14 15:36:16.236 Script: Connexion à 12.34.56.78:9022...
. 2025-04-14 15:36:16.236 Connexion à 12.34.56.78:9022...
. 2025-04-14 15:36:16.273 Connecté à 12.34.56.78:9022. En attente du message de bienvenue...
< 2025-04-14 15:36:16.336 SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.12
. 2025-04-14 15:36:21.199 Expiration du délai détectée ! (Connexion de contrôle)
. 2025-04-14 15:36:21.199 La connexion a échoué.
< 2025-04-14 15:36:21.215 Script: La connexion a échoué.
< 2025-04-14 15:36:21.215 Expiration du délai détectée ! (Connexion de contrôle)
< 2025-04-14 15:36:21.215 La connexion a échoué.
< 2025-04-14 15:36:21.215 Vous ne pouvez pas vous connecter à un serveur SFTP en utilisant le protocole FTP. Veuillez sélectionner le bon protocole.
[2025-04-14 12:16:29.868] [0001] Command: [open "ftp://MONUSER:***@12.34.56.782:9022" -passive=1 -timeout=5]
[2025-04-14 12:16:29.787] [0001] .NET Framework build
[2025-04-14 12:16:29.789] [0001] Executing assembly: WinSCPnet, Version=1.15.0.15131, Culture=neutral, PublicKeyToken=2271ec4a3c56d0bf
[2025-04-14 12:16:29.789] [0001] Executing assembly codebase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WinSCPnet/v4.0_1.15.0.15131__2271ec4a3c56d0bf/WinSCPnet.dll
[2025-04-14 12:16:29.789] [0001] Executing assembly location: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\WinSCPnet\v4.0_1.15.0.15131__2271ec4a3c56d0bf\WinSCPnet.dll
[2025-04-14 12:16:29.789] [0001] Entry Assembly: unmanaged
[2025-04-14 12:16:29.789] [0001] Operating system: Microsoft Windows NT 6.2.9200.0
[2025-04-14 12:16:29.789] [0001] Bitness: 32-bit
[2025-04-14 12:16:29.790] [0001] Timezone: +02:00; Paris, Madrid (heure d’été)
[2025-04-14 12:16:29.790] [0001] User: VMA@ID_INFO@DELL-BPP1XM2; Interactive: True
[2025-04-14 12:16:29.790] [0001] Runtime: 4.0.30319.42000
[2025-04-14 12:16:29.800] [0001] Console encoding: Input: Europe de l'Ouest (Windows) (1252); Output: Europe de l'Ouest (Windows) (1252)
[2025-04-14 12:16:29.800] [0001] Working directory: T:\Sources\iD200\pbl2021
[2025-04-14 12:16:29.802] [0001] Assembly path: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\WinSCPnet\v4.0_1.15.0.15131__2271ec4a3c56d0bf\WinSCPnet.dll
[2025-04-14 12:16:29.802] [0001] Assembly product version: 6.3.7.0
[2025-04-14 12:16:29.802] [0001] Invoking member DebugLogPath enabled debug logging
[2025-04-14 12:16:29.802] [0001] Result [] [null]
[2025-04-14 12:16:29.816] [0001] Session.System.Reflection.IReflect.InvokeMember entering
[2025-04-14 12:16:29.817] [0001] Name [Open]
[2025-04-14 12:16:29.817] [0001] BindingFlags [InvokeMethod, OptionalParamBinding]
[2025-04-14 12:16:29.817] [0001] Binder [System.OleAutBinder]
[2025-04-14 12:16:29.817] [0001] Target [WinSCP.Session]
[2025-04-14 12:16:29.817] [0001] Args [1] [null]
[2025-04-14 12:16:29.818] [0001] Arg [0] [MONUSER@12.34.56.782] [MONUSER@12.34.56.782] [WinSCP.SessionOptions]
[2025-04-14 12:16:29.818] [0001] Culture [en-US]
[2025-04-14 12:16:29.818] [0001] Invoking unambiguous method [Void Open(WinSCP.SessionOptions)]
[2025-04-14 12:16:29.821] [0001] Session.Open entering
[2025-04-14 12:16:29.823] [0001] Session.SetupTempPath entering
[2025-04-14 12:16:29.823] [0001] Temporary folder: C:\Users\vma\AppData\Local\Temp\
[2025-04-14 12:16:29.823] [0001] Temporary file [C:\Users\vma\AppData\Local\Temp\wscp3144.01FED012.tmp] - Exists [False]
[2025-04-14 12:16:29.823] [0001] Session.SetupTempPath leaving
[2025-04-14 12:16:29.825] [0001] ExeSessionProcess..ctor entering
[2025-04-14 12:16:29.826] [0001] ExeSessionProcess.GetExecutablePath entering
[2025-04-14 12:16:29.827] [0001] Executable not found in C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\WinSCPnet\v4.0_1.15.0.15131__2271ec4a3c56d0bf\winscp.exe
[2025-04-14 12:16:29.828] [0001] Executable found in C:\Program Files (x86)\WinSCP\winscp.exe
[2025-04-14 12:16:29.828] [0001] Executable not found in C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\WinSCPnet\v4.0_1.15.0.15131__2271ec4a3c56d0bf\winscp.exe
[2025-04-14 12:16:29.829] [0001] Executable found in C:\Program Files (x86)\WinSCP\winscp.exe
[2025-04-14 12:16:29.829] [0001] ExeSessionProcess.GetExecutablePath leaving
[2025-04-14 12:16:29.829] [0001] EXE executable path resolved to C:\Program Files (x86)\WinSCP\winscp.exe
[2025-04-14 12:16:29.833] [0001] ExeSessionProcess.CheckVersion entering
[2025-04-14 12:16:29.834] [0001] Timestamp of C:\Program Files (x86)\WinSCP\winscp.exe is 20/02/2025 06:13:26
[2025-04-14 12:16:29.834] [0001] Executable version is not cached yet, cache size is 0
[2025-04-14 12:16:29.835] [0001] Version of C:\Program Files (x86)\WinSCP\winscp.exe is 6.3.7.15131, product WinSCP version is 6.3.7.0
[2025-04-14 12:16:29.835] [0001] Size of the executable file is 23015448
[2025-04-14 12:16:29.836] [0001] Size of the executable file version info is 1772
[2025-04-14 12:16:29.836] [0001] Caching executable version
[2025-04-14 12:16:29.837] [0001] ExeSessionProcess.CheckVersion leaving
[2025-04-14 12:16:29.838] [0001] ExeSessionProcess..ctor leaving
[2025-04-14 12:16:29.838] [0001] ExeSessionProcess.Start entering
[2025-04-14 12:16:29.840] [0001] ExeSessionProcess.InitializeConsole entering
[2025-04-14 12:16:29.840] [0001] Trying event _12612_32854180_560
[2025-04-14 12:16:29.841] [0001] Creating event WinSCPConsoleEventRequest_12612_32854180_560
[2025-04-14 12:16:29.841] [0001] Created event WinSCPConsoleEventRequest_12612_32854180_560 with handle 3124 with security none, new True
[2025-04-14 12:16:29.841] [0001] Event _12612_32854180_560 is unique
[2025-04-14 12:16:29.842] [0001] Creating event WinSCPConsoleEventResponse_12612_32854180_560
[2025-04-14 12:16:29.842] [0001] Created event WinSCPConsoleEventResponse_12612_32854180_560 with handle 3120 with security none, new True
[2025-04-14 12:16:29.842] [0001] Creating event WinSCPConsoleEventCancel_12612_32854180_560
[2025-04-14 12:16:29.842] [0001] Created event WinSCPConsoleEventCancel_12612_32854180_560 with handle 3128 with security none, new True
[2025-04-14 12:16:29.847] [0001] Job created
[2025-04-14 12:16:29.847] [0001] Job set to kill all processes
[2025-04-14 12:16:29.847] [0001] ExeSessionProcess.InitializeConsole leaving
[2025-04-14 12:16:29.849] [0001] ExeSessionProcess.InitializeChild entering
[2025-04-14 12:16:29.849] [0001] Starting "C:\Program Files (x86)\WinSCP\winscp.exe" /xmllog="C:\Users\vma\AppData\Local\Temp\wscp3144.01FED012.tmp" /xmlgroups /xmllogrequired /nointeractiveinput /stdout /stdin /dotnet=6.3.7 /ini=nul /log="C:\_avirer\SFTP\SFTP.powerbuilder.log" /console /consoleinstance=_12612_32854180_560
[2025-04-14 12:16:29.857] [0001] Started process 3748
[2025-04-14 12:16:29.857] [0001] ExeSessionProcess.InitializeChild leaving
[2025-04-14 12:16:29.857] [0001] ExeSessionProcess.Start leaving
[2025-04-14 12:16:29.858] [0001] Command: [option batch on]
[2025-04-14 12:16:29.858] [0001] ExeSessionProcess.ExecuteCommand entering
[2025-04-14 12:16:29.858] [0003] ExeSessionProcess.ProcessEvents entering
[2025-04-14 12:16:29.859] [0001] ExeSessionProcess.ExecuteCommand leaving
[2025-04-14 12:16:29.860] [0001] Command: [option confirm off]
[2025-04-14 12:16:29.860] [0001] ExeSessionProcess.ExecuteCommand entering
[2025-04-14 12:16:29.860] [0001] ExeSessionProcess.ExecuteCommand leaving
[2025-04-14 12:16:29.860] [0001] Command: [option reconnecttime 120]
[2025-04-14 12:16:29.860] [0001] ExeSessionProcess.ExecuteCommand entering
[2025-04-14 12:16:29.860] [0001] ExeSessionProcess.ExecuteCommand leaving
[2025-04-14 12:16:29.862] [0001] Session.SessionOptionsToUrlAndSwitches entering
[2025-04-14 12:16:29.867] [0001] Session.SessionOptionsToSwitches entering
[2025-04-14 12:16:29.868] [0001] Session.SessionOptionsToSwitches leaving
[2025-04-14 12:16:29.868] [0001] Session.SessionOptionsToUrlAndSwitches leaving
[2025-04-14 12:16:29.868] [0001] Command: [open "ftp://MONUSER:***@12.34.56.782:9022" -passive=1 -timeout=5]
[2025-04-14 12:16:29.868] [0001] ExeSessionProcess.ExecuteCommand entering
[2025-04-14 12:16:29.868] [0001] ExeSessionProcess.ExecuteCommand leaving
[2025-04-14 12:16:29.868] [0001] Waiting for XML log file
[2025-04-14 12:16:29.966] [0003] ExeSessionProcess.ProcessEvent entering
[2025-04-14 12:16:29.967] [0003] ExeSessionProcess.ProcessInitEvent entering
[2025-04-14 12:16:29.967] [0003] ExeSessionProcess.ProcessInitEvent leaving
[2025-04-14 12:16:29.967] [0003] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 12:16:29.970] [0003] ExeSessionProcess.ProcessEvent entering
[2025-04-14 12:16:29.970] [0003] ExeSessionProcess.ProcessTitleEvent entering
[2025-04-14 12:16:29.970] [0003] Not-supported title event [WinSCP]
[2025-04-14 12:16:29.970] [0003] ExeSessionProcess.ProcessTitleEvent leaving
[2025-04-14 12:16:29.970] [0003] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 12:16:29.970] [0003] ExeSessionProcess.ProcessEvent entering
[2025-04-14 12:16:29.970] [0003] ExeSessionProcess.ProcessTitleEvent entering
[2025-04-14 12:16:29.970] [0003] Not-supported title event [WinSCP]
[2025-04-14 12:16:29.970] [0003] ExeSessionProcess.ProcessTitleEvent leaving
[2025-04-14 12:16:29.970] [0003] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 12:16:29.970] [0003] ExeSessionProcess.ProcessEvent entering
[2025-04-14 12:16:29.971] [0003] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 12:16:29.972] [0003] ExeSessionProcess.ProcessEvent entering
[2025-04-14 12:16:29.972] [0003] ExeSessionProcess.ProcessInputEvent entering
[2025-04-14 12:16:29.974] [0003] Scheduling output: [winscp> option batch on]
[2025-04-14 12:16:29.974] [0003] ExeSessionProcess.ProcessInputEvent leaving
[2025-04-14 12:16:29.974] [0003] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 12:16:29.974] [0003] ExeSessionProcess.ProcessEvent entering
[2025-04-14 12:16:29.974] [0003] Scheduling output: [batch on ]
[2025-04-14 12:16:29.974] [0003] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 12:16:29.974] [0003] ExeSessionProcess.ProcessEvent entering
[2025-04-14 12:16:29.974] [0003] Scheduling output: [reconnecttime 120 ]
[2025-04-14 12:16:29.974] [0003] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 12:16:29.975] [0003] ExeSessionProcess.ProcessEvent entering
[2025-04-14 12:16:29.975] [0003] ExeSessionProcess.ProcessTitleEvent entering
[2025-04-14 12:16:29.975] [0003] Not-supported title event [WinSCP]
[2025-04-14 12:16:29.975] [0003] ExeSessionProcess.ProcessTitleEvent leaving
[2025-04-14 12:16:29.975] [0003] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 12:16:29.975] [0003] ExeSessionProcess.ProcessEvent entering
[2025-04-14 12:16:29.975] [0003] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 12:16:29.975] [0003] ExeSessionProcess.ProcessEvent entering
[2025-04-14 12:16:29.975] [0003] ExeSessionProcess.ProcessInputEvent entering
[2025-04-14 12:16:29.975] [0003] Scheduling output: [winscp> option confirm off]
[2025-04-14 12:16:29.975] [0003] ExeSessionProcess.ProcessInputEvent leaving
[2025-04-14 12:16:29.975] [0003] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 12:16:29.976] [0003] ExeSessionProcess.ProcessEvent entering
[2025-04-14 12:16:29.976] [0003] Scheduling output: [confirm off ]
[2025-04-14 12:16:29.976] [0003] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 12:16:29.976] [0003] ExeSessionProcess.ProcessEvent entering
[2025-04-14 12:16:29.976] [0003] ExeSessionProcess.ProcessTitleEvent entering
[2025-04-14 12:16:29.976] [0003] Not-supported title event [WinSCP]
[2025-04-14 12:16:29.976] [0003] ExeSessionProcess.ProcessTitleEvent leaving
[2025-04-14 12:16:29.976] [0003] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 12:16:29.976] [0003] ExeSessionProcess.ProcessEvent entering
[2025-04-14 12:16:29.976] [0003] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 12:16:29.976] [0003] ExeSessionProcess.ProcessEvent entering
[2025-04-14 12:16:29.976] [0003] ExeSessionProcess.ProcessInputEvent entering
[2025-04-14 12:16:29.976] [0003] Scheduling output: [winscp> option reconnecttime 120]
[2025-04-14 12:16:29.976] [0003] ExeSessionProcess.ProcessInputEvent leaving
[2025-04-14 12:16:29.977] [0003] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 12:16:29.977] [0003] ExeSessionProcess.ProcessEvent entering
[2025-04-14 12:16:29.977] [0003] Scheduling output: [reconnecttime 120 ]
[2025-04-14 12:16:29.977] [0003] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 12:16:29.977] [0003] ExeSessionProcess.ProcessEvent entering
[2025-04-14 12:16:29.977] [0003] ExeSessionProcess.ProcessTitleEvent entering
[2025-04-14 12:16:29.977] [0003] Not-supported title event [WinSCP]
[2025-04-14 12:16:29.977] [0003] ExeSessionProcess.ProcessTitleEvent leaving
[2025-04-14 12:16:29.977] [0003] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 12:16:29.977] [0003] ExeSessionProcess.ProcessEvent entering
[2025-04-14 12:16:29.977] [0003] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 12:16:29.978] [0003] ExeSessionProcess.ProcessEvent entering
[2025-04-14 12:16:29.978] [0003] ExeSessionProcess.ProcessInputEvent entering
[2025-04-14 12:16:29.978] [0003] Scheduling output: [winscp> open "ftp://MONUSER:***@12.34.56.782:9022" -passive=1 -timeout=5]
[2025-04-14 12:16:29.978] [0003] ExeSessionProcess.ProcessInputEvent leaving
[2025-04-14 12:16:29.978] [0003] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 12:16:29.987] [0001] XML log file created
[2025-04-14 12:16:30.020] [0001] SessionLogReader.Read entering
[2025-04-14 12:16:30.022] [0001] Opening log without write sharing
[2025-04-14 12:16:30.023] [0001] Opening log with write sharing
[2025-04-14 12:16:30.023] [0001] Log opened
[2025-04-14 12:16:30.024] [0003] ExeSessionProcess.ProcessEvent entering
[2025-04-14 12:16:30.024] [0003] Scheduling output: [Connexion à 12.34.56.782:9022...]
[2025-04-14 12:16:30.024] [0003] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 12:16:30.028] [0001] Skipping 0 nodes
[2025-04-14 12:16:30.028] [0001] Read node 1: XmlDeclaration xml=version="1.0" encoding="UTF-8"
[2025-04-14 12:16:30.029] [0001] Log contents:
<?xml version="1.0" encoding="UTF-8"?>
<session xmlns="http://winscp.net/schema/session/1.0" name="MONUSER@12.34.56.782" start="2025-04-14T10:16:29.979Z">
[2025-04-14 12:16:30.029] [0001] SessionLogReader.Read leaving
[2025-04-14 12:16:30.029] [0001] SessionLogReader.Read entering
[2025-04-14 12:16:30.029] [0001] Read node 2: Whitespace
[2025-04-14 12:16:30.029] [0001] Log contents has not changed
[2025-04-14 12:16:30.029] [0001] SessionLogReader.Read leaving
[2025-04-14 12:16:30.030] [0001] SessionLogReader.Read entering
[2025-04-14 12:16:30.030] [0001] Read node 3: Element session
[2025-04-14 12:16:30.030] [0001] Log contents has not changed
[2025-04-14 12:16:30.030] [0001] SessionLogReader.Read leaving
[2025-04-14 12:16:30.031] [0001] SessionLogReader.Read entering
[2025-04-14 12:16:30.031] [0001] Waiting for log update and dispatching events for 50
[2025-04-14 12:16:30.033] [0001] Output: [winscp> option batch on]
[2025-04-14 12:16:30.033] [0001] Output: [batch on ]
[2025-04-14 12:16:30.033] [0001] Output: [reconnecttime 120 ]
[2025-04-14 12:16:30.033] [0001] Output: [winscp> option confirm off]
[2025-04-14 12:16:30.033] [0001] Output: [confirm off ]
[2025-04-14 12:16:30.033] [0001] Output: [winscp> option reconnecttime 120]
[2025-04-14 12:16:30.033] [0001] Output: [reconnecttime 120 ]
[2025-04-14 12:16:30.033] [0001] Output: [winscp> open "ftp://MONUSER:***@12.34.56.782:9022" -passive=1 -timeout=5]
[2025-04-14 12:16:30.033] [0001] Output: [Connexion à 12.34.56.782:9022...]
[2025-04-14 12:16:30.083] [0001] Waiting for log update and dispatching events for 100
[2025-04-14 12:16:30.195] [0001] Waiting for log update and dispatching events for 200
[2025-04-14 12:16:30.402] [0001] Waiting for log update and dispatching events for 400
[2025-04-14 12:16:30.814] [0001] Waiting for log update and dispatching events for 800
[2025-04-14 12:16:31.615] [0001] Waiting for log update and dispatching events for 800
[2025-04-14 12:16:32.432] [0001] Waiting for log update and dispatching events for 800
[2025-04-14 12:16:33.242] [0001] Waiting for log update and dispatching events for 800
[2025-04-14 12:16:34.052] [0001] Waiting for log update and dispatching events for 800
[2025-04-14 12:16:34.878] [0001] Waiting for log update and dispatching events for 800
[2025-04-14 12:16:35.002] [0003] ExeSessionProcess.ProcessEvent entering
[2025-04-14 12:16:35.002] [0003] Scheduling output: [La connexion a échoué.]
[2025-04-14 12:16:35.002] [0003] Scheduling output: [Expiration du délai détectée ! (Connexion de contrôle)
]
[2025-04-14 12:16:35.002] [0003] Scheduling output: [La connexion a échoué.
]
[2025-04-14 12:16:35.002] [0001] Output: [La connexion a échoué.]
[2025-04-14 12:16:35.002] [0001] Output: [Expiration du délai détectée ! (Connexion de contrôle)
]
[2025-04-14 12:16:35.002] [0003] Scheduling output: [Vous ne pouvez pas vous connecter à un serveur SFTP en utilisant le protocole FTP. Veuillez sélectionner le bon protocole.]
[2025-04-14 12:16:35.002] [0003] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 12:16:35.002] [0001] Output: [La connexion a échoué.
]
[2025-04-14 12:16:35.002] [0001] Output: [Vous ne pouvez pas vous connecter à un serveur SFTP en utilisant le protocole FTP. Veuillez sélectionner le bon protocole.]
[2025-04-14 12:16:35.007] [0003] ExeSessionProcess.ProcessEvent entering
[2025-04-14 12:16:35.007] [0003] ExeSessionProcess.ProcessTitleEvent entering
[2025-04-14 12:16:35.007] [0003] Not-supported title event [WinSCP]
[2025-04-14 12:16:35.007] [0003] ExeSessionProcess.ProcessTitleEvent leaving
[2025-04-14 12:16:35.007] [0003] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 12:16:35.007] [0003] ExeSessionProcess.ProcessEvent entering
[2025-04-14 12:16:35.007] [0003] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 12:16:35.007] [0003] ExeSessionProcess.ProcessEvent entering
[2025-04-14 12:16:35.007] [0003] ExeSessionProcess.ProcessInputEvent entering
[2025-04-14 12:16:35.691] [0001] Read node 4: Whitespace
[2025-04-14 12:16:35.691] [0001] Log contents:
<?xml version="1.0" encoding="UTF-8"?>
<session xmlns="http://winscp.net/schema/session/1.0" name="MONUSER@12.34.56.782" start="2025-04-14T10:16:29.979Z">
<failure>
<message>La connexion a échoué.</message>
<message>Expiration du délai détectée ! (Connexion de contrôle)</message>
<message>La connexion a échoué.</message>
<message>Vous ne pouvez pas vous connecter à un serveur SFTP en utilisant le protocole FTP. Veuillez sélectionner le bon protocole.</message>
</failure>
</session>
[2025-04-14 12:16:35.691] [0001] SessionLogReader.Read leaving
[2025-04-14 12:16:35.692] [0001] SessionLogReader.Read entering
[2025-04-14 12:16:35.692] [0001] Read node 5: Element failure
[2025-04-14 12:16:35.692] [0001] Log contents has not changed
[2025-04-14 12:16:35.696] [0001] SessionLogReader.Read entering
[2025-04-14 12:16:35.696] [0001] Read node 6: Whitespace
[2025-04-14 12:16:35.696] [0001] Log contents has not changed
[2025-04-14 12:16:35.697] [0001] SessionLogReader.Read leaving
[2025-04-14 12:16:35.697] [0001] SessionLogReader.Read entering
[2025-04-14 12:16:35.697] [0001] Read node 7: Element message
[2025-04-14 12:16:35.697] [0001] Log contents has not changed
[2025-04-14 12:16:35.697] [0001] SessionLogReader.Read leaving
[2025-04-14 12:16:35.697] [0001] SessionLogReader.Read entering
[2025-04-14 12:16:35.697] [0001] Read node 8: Text La connexion a échoué.
[2025-04-14 12:16:35.698] [0001] Log contents has not changed
[2025-04-14 12:16:35.698] [0001] SessionLogReader.Read leaving
[2025-04-14 12:16:35.698] [0001] SessionLogReader.Read entering
[2025-04-14 12:16:35.698] [0001] Read node 9: EndElement message
[2025-04-14 12:16:35.699] [0001] Log contents has not changed
[2025-04-14 12:16:35.699] [0001] SessionLogReader.Read leaving
[2025-04-14 12:16:35.699] [0001] SessionLogReader.Read entering
[2025-04-14 12:16:35.699] [0001] Read node 10: Whitespace
[2025-04-14 12:16:35.699] [0001] Log contents has not changed
[2025-04-14 12:16:35.699] [0001] SessionLogReader.Read leaving
[2025-04-14 12:16:35.699] [0001] SessionLogReader.Read entering
[2025-04-14 12:16:35.699] [0001] Read node 11: Element message
[2025-04-14 12:16:35.700] [0001] Log contents has not changed
[2025-04-14 12:16:35.700] [0001] SessionLogReader.Read leaving
[2025-04-14 12:16:35.700] [0001] SessionLogReader.Read entering
[2025-04-14 12:16:35.700] [0001] Read node 12: Text Expiration du délai détectée ! (Connexion de contrôle)
[2025-04-14 12:16:35.701] [0001] Log contents has not changed
[2025-04-14 12:16:35.701] [0001] SessionLogReader.Read leaving
[2025-04-14 12:16:35.701] [0001] SessionLogReader.Read entering
[2025-04-14 12:16:35.701] [0001] Read node 13: EndElement message
[2025-04-14 12:16:35.701] [0001] Log contents has not changed
[2025-04-14 12:16:35.701] [0001] SessionLogReader.Read leaving
[2025-04-14 12:16:35.701] [0001] SessionLogReader.Read entering
[2025-04-14 12:16:35.701] [0001] Read node 14: Whitespace
[2025-04-14 12:16:35.701] [0001] Log contents has not changed
[2025-04-14 12:16:35.702] [0001] SessionLogReader.Read leaving
[2025-04-14 12:16:35.702] [0001] SessionLogReader.Read entering
[2025-04-14 12:16:35.702] [0001] Read node 15: Element message
[2025-04-14 12:16:35.702] [0001] Log contents has not changed
[2025-04-14 12:16:35.702] [0001] SessionLogReader.Read leaving
[2025-04-14 12:16:35.702] [0001] SessionLogReader.Read entering
[2025-04-14 12:16:35.702] [0001] Read node 16: Text La connexion a échoué.
[2025-04-14 12:16:35.702] [0001] Log contents has not changed
[2025-04-14 12:16:35.703] [0001] SessionLogReader.Read leaving
[2025-04-14 12:16:35.703] [0001] SessionLogReader.Read entering
[2025-04-14 12:16:35.703] [0001] Read node 17: EndElement message
[2025-04-14 12:16:35.703] [0001] Log contents has not changed
[2025-04-14 12:16:35.703] [0001] SessionLogReader.Read leaving
[2025-04-14 12:16:35.703] [0001] SessionLogReader.Read entering
[2025-04-14 12:16:35.703] [0001] Read node 18: Whitespace
[2025-04-14 12:16:35.703] [0001] Log contents has not changed
[2025-04-14 12:16:35.704] [0001] SessionLogReader.Read leaving
[2025-04-14 12:16:35.704] [0001] SessionLogReader.Read entering
[2025-04-14 12:16:35.704] [0001] Read node 19: Element message
[2025-04-14 12:16:35.704] [0001] Log contents has not changed
[2025-04-14 12:16:35.704] [0001] SessionLogReader.Read leaving
[2025-04-14 12:16:35.704] [0001] SessionLogReader.Read entering
[2025-04-14 12:16:35.704] [0001] Read node 20: Text Vous ne pouvez pas vous connecter à un serveur SFTP en utilisant le protocole FTP. Veuillez sélectionner le bon protocole.
[2025-04-14 12:16:35.704] [0001] Log contents has not changed
[2025-04-14 12:16:35.704] [0001] SessionLogReader.Read leaving
[2025-04-14 12:16:35.705] [0001] SessionLogReader.Read entering
[2025-04-14 12:16:35.705] [0001] Read node 21: EndElement message
[2025-04-14 12:16:35.705] [0001] Log contents has not changed
[2025-04-14 12:16:35.705] [0001] SessionLogReader.Read leaving
[2025-04-14 12:16:35.705] [0001] SessionLogReader.Read entering
[2025-04-14 12:16:35.705] [0001] Read node 22: Whitespace
[2025-04-14 12:16:35.705] [0001] Log contents has not changed
[2025-04-14 12:16:35.705] [0001] SessionLogReader.Read leaving
[2025-04-14 12:16:35.706] [0001] SessionLogReader.Read entering
[2025-04-14 12:16:35.706] [0001] Read node 23: EndElement failure
[2025-04-14 12:16:35.706] [0001] Log contents has not changed
[2025-04-14 12:16:35.706] [0001] SessionLogReader.Read leaving
[2025-04-14 12:16:35.707] [0001] ElementLogReader.Dispose(failure@1) entering
[2025-04-14 12:16:35.707] [0001] ElementLogReader.ReadToEnd(failure@1) entering
[2025-04-14 12:16:35.707] [0001] ElementLogReader.ReadToEnd(failure@1) leaving
[2025-04-14 12:16:35.707] [0001] ElementLogReader.Dispose(failure@1) leaving
[2025-04-14 12:16:35.708] [0001] Failed: [WinSCP.SessionRemoteException: La connexion a échoué.
Expiration du délai détectée ! (Connexion de contrôle)
La connexion a échoué.
Vous ne pouvez pas vous connecter à un serveur SFTP en utilisant le protocole FTP. Veuillez sélectionner le bon protocole.]
[2025-04-14 12:16:35.709] [0001] Exception: WinSCP.SessionRemoteException: La connexion a échoué.
Expiration du délai détectée ! (Connexion de contrôle)
La connexion a échoué.
Vous ne pouvez pas vous connecter à un serveur SFTP en utilisant le protocole FTP. Veuillez sélectionner le bon protocole.
[2025-04-14 12:16:35.709] [0001] SessionLogReader.Read leaving
[2025-04-14 12:16:35.718] [0001] Exception: WinSCP.SessionRemoteException: La connexion a échoué.
Expiration du délai détectée ! (Connexion de contrôle)
La connexion a échoué.
Vous ne pouvez pas vous connecter à un serveur SFTP en utilisant le protocole FTP. Veuillez sélectionner le bon protocole.
à WinSCP.SessionLogReader.Read(LogReadFlags flags)
à WinSCP.ElementLogReader.Read(LogReadFlags flags)
à WinSCP.SessionElementLogReader.Read(LogReadFlags flags)
à WinSCP.CustomLogReader.TryWaitForNonEmptyElement(String localName, LogReadFlags flags)
à WinSCP.CustomLogReader.WaitForNonEmptyElement(String localName, LogReadFlags flags)
à WinSCP.Session.WaitForGroup()
à WinSCP.Session.Open(SessionOptions sessionOptions)
[2025-04-14 12:16:35.719] [0001] Session.Cleanup entering
[2025-04-14 12:16:35.719] [0001] Terminating process
[2025-04-14 12:16:35.719] [0001] Command: [exit]
[2025-04-14 12:16:35.719] [0001] ExeSessionProcess.ExecuteCommand entering
[2025-04-14 12:16:35.719] [0001] ExeSessionProcess.ExecuteCommand leaving
[2025-04-14 12:16:35.719] [0003] Scheduling output: [winscp> exit]
[2025-04-14 12:16:35.719] [0003] ExeSessionProcess.ProcessInputEvent leaving
[2025-04-14 12:16:35.719] [0003] ExeSessionProcess.ProcessEvent leaving
[2025-04-14 12:16:35.719] [0001] ExeSessionProcess.Close entering
[2025-04-14 12:16:35.719] [0001] Waiting for process to exit (2000 ms)
[2025-04-14 12:16:35.748] [0001] ExeSessionProcess.Close leaving
[2025-04-14 12:16:35.750] [0001] ExeSessionProcess.Dispose entering
[2025-04-14 12:16:35.830] [0003] Aborted
[2025-04-14 12:16:35.830] [0003] ExeSessionProcess.ProcessEvents leaving
[2025-04-14 12:16:35.830] [0001] Closing job
[2025-04-14 12:16:35.831] [0001] ExeSessionProcess.Dispose leaving
[2025-04-14 12:16:35.831] [0001] Disposing log readers
[2025-04-14 12:16:35.831] [0001] SessionElementLogReader.Dispose entering
[2025-04-14 12:16:35.831] [0001] ElementLogReader.Dispose(session@0) entering
[2025-04-14 12:16:35.831] [0001] ElementLogReader.ReadToEnd(session@0) entering
[2025-04-14 12:16:35.831] [0001] SessionLogReader.Read entering
[2025-04-14 12:16:35.831] [0001] Read node 24: Whitespace
[2025-04-14 12:16:35.832] [0001] Log contents has not changed
[2025-04-14 12:16:35.832] [0001] SessionLogReader.Read leaving
[2025-04-14 12:16:35.832] [0001] SessionLogReader.Read entering
[2025-04-14 12:16:35.832] [0001] Read node 25: EndElement session
[2025-04-14 12:16:35.832] [0001] Log contents has not changed
[2025-04-14 12:16:35.832] [0001] SessionLogReader.Read leaving
[2025-04-14 12:16:35.832] [0001] ElementLogReader.ReadToEnd(session@0) leaving
[2025-04-14 12:16:35.832] [0001] ElementLogReader.Dispose(session@0) leaving
[2025-04-14 12:16:35.832] [0001] SessionElementLogReader.Dispose leaving
[2025-04-14 12:16:35.832] [0001] SessionLogReader.Dispose entering
[2025-04-14 12:16:35.833] [0001] Log contents has not changed
[2025-04-14 12:16:35.833] [0001] Closing log
[2025-04-14 12:16:35.833] [0001] SessionLogReader.Dispose leaving
[2025-04-14 12:16:35.833] [0001] Deleting XML log file [C:\Users\vma\AppData\Local\Temp\wscp3144.01FED012.tmp]
[2025-04-14 12:16:35.833] [0001] Session.Cleanup leaving
[2025-04-14 12:16:35.835] [0001] Session.Open leaving
[2025-04-14 12:16:35.836] [0001] Error [System.Reflection.TargetInvocationException: Une exception a été levée par la cible d'un appel. ---> WinSCP.SessionRemoteException: La connexion a échoué.
Expiration du délai détectée ! (Connexion de contrôle)
La connexion a échoué.
Vous ne pouvez pas vous connecter à un serveur SFTP en utilisant le protocole FTP. Veuillez sélectionner le bon protocole.
à WinSCP.SessionLogReader.Read(LogReadFlags flags)
à WinSCP.ElementLogReader.Read(LogReadFlags flags)
à WinSCP.SessionElementLogReader.Read(LogReadFlags flags)
à WinSCP.CustomLogReader.TryWaitForNonEmptyElement(String localName, LogReadFlags flags)
à WinSCP.CustomLogReader.WaitForNonEmptyElement(String localName, LogReadFlags flags)
à WinSCP.Session.WaitForGroup()
à WinSCP.Session.Open(SessionOptions sessionOptions)
--- Fin de la trace de la pile d'exception interne ---
à System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
à System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
à System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
à WinSCP.Session.System.Reflection.IReflect.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters)]
[2025-04-14 12:16:35.836] [0001] Session.System.Reflection.IReflect.InvokeMember leaving
DebugLogPath
).
System.ArgumentException: SessionOptions.Protocol is Protocol.Sftp or Protocol.Scp, but SessionOptions.SshHostKeyFingerprint is not set.
ole_sessionOptions.Protocol = 2 // 2 = SFTP
Protocol to use for the session. Possible values are Protocol.Sftp (default), Protocol.Scp, Protocol.Ftp, Protocol.Webdav and Protocol.S3
Vous ne pouvez pas vous connecter à un serveur SFTP en utilisant le protocole FTP. Veuillez sélectionner le bon protocole.
ole_sessionOptions.Protocol = 2 // 2 = SFTP
. 2025-04-14 10:49:42.059 --------------------------------------------------------------------------
. 2025-04-14 10:49:42.059 WinSCP Version 6.3.7 (Compilation 15131 2025-02-20) (OS 10.0.19045 – Windows 10 Enterprise)
. 2025-04-14 10:49:42.059 Configuration: nul
. 2025-04-14 10:49:42.059 Log level: Normal
. 2025-04-14 10:49:42.059 Local account: ID_INFO\VMA
. 2025-04-14 10:49:42.059 Working directory: C:\Program Files (x86)\WinSCP
. 2025-04-14 10:49:42.059 Process ID: 4940
. 2025-04-14 10:49:42.075 Ancestor processes: PB210, explorer, ...
. 2025-04-14 10:49:42.075 Command-line: "C:\Program Files (x86)\WinSCP\winscp.exe" /xmllog="C:\Users\vma\AppData\Local\Temp\wscp0CE0.0297B065.tmp" /xmlgroups /xmllogrequired /nointeractiveinput /stdout /stdin /dotnet=6.3.7 /ini=nul /log="C:\_avirer\SFTP\SFTP.powerbuilder.log" /console /consoleinstance=_3296_55915408_579
. 2025-04-14 10:49:42.075 Time zone: Current: GMT+2, Standard: GMT+1 (Paris, Madrid), DST: GMT+2 (Paris, Madrid (heure d’été)), DST Start: 30/03/2025, DST End: 26/10/2025
. 2025-04-14 10:49:42.075 Login time: lundi 14 avril 2025 10:49:42
. 2025-04-14 10:49:42.075 --------------------------------------------------------------------------
. 2025-04-14 10:49:42.075 Script: Retrospectively logging previous script records:
> 2025-04-14 10:49:42.075 Script: option batch on
< 2025-04-14 10:49:42.075 Script: batch on
< 2025-04-14 10:49:42.075 Script: reconnecttime 120
> 2025-04-14 10:49:42.075 Script: option confirm off
< 2025-04-14 10:49:42.075 Script: confirm off
> 2025-04-14 10:49:42.075 Script: option reconnecttime 120
< 2025-04-14 10:49:42.075 Script: reconnecttime 120
> 2025-04-14 10:49:42.075 Script: open ftp://MONUSER:***@12.24.36.48:9022 -passive=1 -timeout=5
. 2025-04-14 10:49:42.075 --------------------------------------------------------------------------
. 2025-04-14 10:49:42.075 Session name: MONUSER@12.24.36.48 (Ad-Hoc site)
. 2025-04-14 10:49:42.075 Host name: 12.24.36.48 (Port: 9022)
. 2025-04-14 10:49:42.075 User name: MONUSER (Password: Yes, Key file: No, Passphrase: No)
. 2025-04-14 10:49:42.075 Transfer Protocol: FTP
. 2025-04-14 10:49:42.075 Ping type: Dummy, Ping interval: 30 sec; Timeout: 5 sec
. 2025-04-14 10:49:42.075 Disable Nagle: No
. 2025-04-14 10:49:42.075 Proxy: None
. 2025-04-14 10:49:42.075 Send buffer: 262144
. 2025-04-14 10:49:42.075 UTF: Auto
. 2025-04-14 10:49:42.075 FTPS: None [Client certificate: No]
. 2025-04-14 10:49:42.075 FTP: Passive: Yes [Force IP: Auto]; MLSD: Auto [List all: Auto]; HOST: Auto
. 2025-04-14 10:49:42.075 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2025-04-14 10:49:42.075 Cache directory changes: Yes, Permanent: Yes
. 2025-04-14 10:49:42.075 Recycle bin: Delete to: No, Overwritten to: No, Bin path:
. 2025-04-14 10:49:42.075 Timezone offset: 0h 0m
. 2025-04-14 10:49:42.075 --------------------------------------------------------------------------
< 2025-04-14 10:49:42.091 Script: Connexion à 12.24.36.48:9022...
. 2025-04-14 10:49:42.091 Connexion à 12.24.36.48:9022...
. 2025-04-14 10:49:42.128 Connecté à 12.24.36.48:9022. En attente du message de bienvenue...
< 2025-04-14 10:49:42.175 SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.12
. 2025-04-14 10:49:47.089 Expiration du délai détectée ! (Connexion de contrôle)
. 2025-04-14 10:49:47.089 La connexion a échoué.
< 2025-04-14 10:49:47.089 Script: La connexion a échoué.
< 2025-04-14 10:49:47.089 Expiration du délai détectée ! (Connexion de contrôle)
< 2025-04-14 10:49:47.089 La connexion a échoué.
< 2025-04-14 10:49:47.089 Vous ne pouvez pas vous connecter à un serveur SFTP en utilisant le protocole FTP. Veuillez sélectionner le bon protocole.
Session.SessionLogPath
. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.ole_winscp.Open(ole_sessionOptions)
Error calling external object function open.
// Sources :
// https://winscp.net/
OLEObject ole_winscp
integer li_rc
// RAZ des indicateurs
cbx_winscpsession.Checked = FALSE
cbx_sessionsoptions.Checked = FALSE
cbx_port.Checked = FALSE
cbx_open.Checked = FALSE
cbx_opttrsf.Checked = FALSE
cbx_getfile.Checked = FALSE
// Créer l'objet COM
cbx_winscpsession.ThirdState = TRUE
ole_winscp = create OLEObject
IF ole_winscp.ConnectToNewObject("WinSCP.Session") <> 0 THEN
MessageBox("Erreur ConnectToNewObject()", "Impossible de créer un objet COM [WinSCP.Session]")
RETURN
END IF
cbx_winscpsession.Checked = TRUE
//===> C'est OK
// Initialiser les options de session
cbx_sessionsoptions.ThirdState = TRUE
OLEObject ole_sessionOptions
ole_sessionOptions = create OLEObject
IF ole_sessionOptions.ConnectToNewObject("WinSCP.SessionOptions") <> 0 THEN
MessageBox("Erreur ConnectToNewObject()", "Impossible de créer un objet COM [WinSCP.SessionOptions]")
RETURN
END IF
cbx_sessionsoptions.Checked = TRUE
//===> C'est OK
// Ouverture de la session
cbx_open.ThirdState = TRUE
ole_sessionOptions.Protocol = 2 // 2 = SFTP
//ole_sessionOptions.FtpMode = 1
ole_sessionOptions.HostName = sle_ip.Text
IF Integer(sle_port.Text) > 0 THEN
ole_sessionOptions.PortNumber = Integer(sle_port.Text)
cbx_port.Checked = TRUE
END IF
ole_sessionOptions.UserName = sle_user.Text
ole_sessionOptions.Password = sle_mdp.Text
ole_sessionOptions.TimeoutInMilliseconds = 5000
// N'existe pas ole_sessionOptions.XmlLogPath = "C:\\avirer\vmasftplog.xml"
IF ole_winscp.Open(ole_sessionOptions) <> 0 THEN
MessageBox("Erreur Open()", "Impossible d'ouvrir une session")
RETURN
END IF
cbx_open.Checked = TRUE
// Télécharger un fichier
cbx_opttrsf.ThirdState = TRUE
OLEObject ole_transferOptions
ole_transferOptions = create OLEObject
IF ole_transferOptions.ConnectToNewObject("WinSCP.TransferOptions") <> 0 THEN
MessageBox("Erreur ConnectToNewObject()", "Impossible de définir les options de transfert [WinSCP.TransferOptions]")
RETURN
END IF
cbx_opttrsf.Checked = TRUE
// Récupération du fichier
cbx_getfile.ThirdState = TRUE
OLEObject ole_transferResult
FileDelete(sle_local.Text)
ole_transferResult = ole_winscp.GetFiles(sle_distant.Text, sle_local.Text, False, ole_transferOptions)
IF FileExists(sle_local.Text) = FALSE THEN
MessageBox("Erreur de transfert", "Le fichier ["+sle_local.text+" n'est pas présent")
RETURN
END IF
cbx_getfile.Checked = TRUE
// Vérifier le résultat du transfert
ole_transferResult.Check()
// Fermer la session
ole_winscp.Close()
// Libérer les objets COM
destroy ole_transferOptions
destroy ole_sessionOptions
destroy ole_winscp
oleobject lo_sessionoptions
lo_sessionoptions = create oleobject
li_return = lo_sessionoptions.ConnectToNewObject("WinSCP.SessionOptions")
IF li_return <> 0 THEN
messagebox("ConnectToNewObject", "Erreur n° " + string(li_return))
RETURN
END IF
-2 -- Class name not found