Ok thanks, I'll retry
In fact I'm not using Windows Script File, so I don't know how to specify the
My VB script is directly launch from a SCADA system. I have to ask the hotline.
But, for the moment I succeeded in running a command line:
In fact I'm not using Windows Script File, so I don't know how to specify the
<reference object="WinSCP.Session" />
My VB script is directly launch from a SCADA system. I have to ask the hotline.
But, for the moment I succeeded in running a command line:
Dim WshShell
Set WshShell = CreateObject("WScript.Shell")
Dim cmd
cmd = """C:\Program Files (x86)\WinSCP\WinSCP.com"" /command ""open sftp://xxxxxxx/ -hostkey=""""ssh-ed25519 255 xxxxxxxxx="""""" ""lcd " & vtFolderName & " "" ""cd /data"" ""put " & vFileName & " "" ""exit"" "
' "0" pour que la fenêtre ne s'ouvre pas.
' "TRUE" pour attendre avant de passer à la ligne suivante.
Dim retv
retv = WshShell.Run(cmd, 0, True)