Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


Check if an error occurred or not


i use autoIT and to upload data. I use this line of code to do it:

Run(' /command "open s" "put c:\\_data\*" "exit"')

This works great.
Now i would like to check if an error occurred or not.
$check_ftp = Run('C:\Program Files (x86)\WinSCP\ /command "open s" "put C:\Users\a.polifka\Desktop\_shopupdate\shops\*" "exit"')

If $check_ftp = 0 Then XY
Else XY

any idea?

My result of $check_ftp is always something differnt, like 12904 or 13000

Any Idea?