Error code 1 Web while trying to run WinSCP script

Hello, I’m trying to run WinSCP script and I get the error code 1 error doesn’t have any further description could anyone help here is the script: /command “option batch abort” “option confirm off” “open sftp://username:pass@host” “put mycsv.csv /csv” “exit”.
Thank you in advance.

Hi Milheil and welcome to the Community!

Capture the output to see the error details. See also this topic: How to capture results from external applications - #2 by dgudkov