Exit Code Error

Advertisement

mark@magix.co.nz
Joined:
Posts:
1
Location:
New Zealand

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,587
Location:
Prague, Czechia

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

Reply with quote

Advertisement

You can post new topics in this forum