Wasn't logged in above... oops :)
- NonaSuomy
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
Dim WshShell, OExec, output
' Setup Shell vars.
Set WshShell = WScript.CreateObject("WScript.Shell")
' Setup WinSCP and capture shell output.
Set oExec = WshShell.Exec("winscp.com /log=log.txt")
'test@ftp.lfpress.com
oExec.StdIn.Write(_
"option batch abort" & vbCRLF & _
"option exclude ""*/; .DS_Store; *.ini; *.tmp; *.mp4>300M; *.avi>300M; *.mpg>300M""" + vbCRLF & _
"open X@X.X.com" + vbCRLF & _
"synchronize local -delete ""ScreenUpload\"" ""/en/""" + vbCRLF & _
"exit" + vbCRLF)
' wait until it finishes and collect its output.
output = oExec.StdOut.ReadAll()
' print the output.
WScript.Echo(output)