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.

Options
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)

Options

Topic review

martin

Re: Exit Code Error

All commands have to follow the /command switch:
"C:\Program Files\WinSCP\WinSCP.exe" /command "open ftp://xxxx:***@xxxx.xxxx.co.nz" "put Y:\IMAGES\search.png /acs/" "exit" /log="Y:\TEMP\WINSCP-STN963-20190125-9.LOG" /loglevel=1
mark@magix.co.nz

Exit Code Error

I am running, WinSCP Version 5.13.7 (Build 9125) (OS 6.1.7601 Service Pack 1 - Windows 7 Professional) and have an error when using the following command line syntax.

"C:\Program Files\WinSCP\WinSCP.exe" /command "open ftp://xxxx:***@xxxx.xxxx.co.nz" "put Y:\IMAGES\search.png /acs/" /log="Y:\TEMP\WINSCP-STN963-20190125-9.LOG" /loglevel=1 "exit"

The file is uploaded successfully but the Exit Code is 1 because of this error.

Retrospectively logging previous script records:
Searching for host...
Host "exit" does not exist.
Script: Failed

Could somebody please help me with the cause of this error.

Cheers.