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: returning non-zero code even though FTP was successful

Please post a full log file showing the problem using the latest version of WinSCP.
WHB_BHS

Re: returning non-zero code even though FTP was successful

I have attached a copy of the log file
martin

Re: returning non-zero code even though FTP was successful

Please post a full log file showing the problem using the latest version of WinSCP.

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.
WHB_BHS

returning non-zero code even though FTP was successful

we have an ".bat" file that FTPs files to an outside vendor. after running winscp to FTP the files the script checks %ERRORLEVEL% to make sure the FTP was successful. %ERRORLEVEL% is valued to '1' so the script abends, but when you check with the vendor, the files have successfully been sent. can anyone explain? Here is a portion of the logfile:
Binary transfer mode selected.
Checking existence of file.
Type: SSH_FXP_LSTAT, Size: 52, Number: 263
Type: SSH_FXP_STATUS, Size: 29, Number: 263
Status/error code: 2
Checking existence of partially transfered file.
Type: SSH_FXP_LSTAT, Size: 61, Number: 519
Type: SSH_FXP_STATUS, Size: 29, Number: 519
Status/error code: 2
Opening remote file.
Type: SSH_FXP_OPEN, Size: 77, Number: 771
Type: SSH_FXP_HANDLE, Size: 13, Number: 771
Type: SSH_FXP_WRITE, Size: 4121, Number: 1286
95 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
Type: SSH_FXP_CLOSE, Size: 13, Number: 13828
Type: SSH_FXP_STATUS, Size: 24, Number: 13318
Type: SSH_FXP_STATUS, Size: 24, Number: 13574
Type: SSH_FXP_STATUS, Size: 24, Number: 13828
Status/error code: 0
Type: SSH_FXP_RENAME, Size: 108, Number: 14098
Type: SSH_FXP_STATUS, Size: 24, Number: 14098
Status/error code: 0
Type: SSH_FXP_SETSTAT, Size: 64, Number: 1033
Type: SSH_FXP_STATUS, Size: 24, Number: 1033
Status/error code: 0