I cannot support an ancient version of WinSCP you are using. Please upgrade to the latest version and post a log file using it (for session, where WinSCP fails).
- martin
c:\winscp.com /console /command "option batch abort" "option confirm off" "open ftp://[hiddenFTPdetails]" "put c:\work\test3.txt" "exit"
& ECHO errorcode=%ERRORLEVEL%
is irrelevant.
/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.
&
) are resolved BEFORE that line is executed.
dir nonexisting & echo %ERRORLEVEL%
. You will also get 0.
c:\winscp.com /console /command "option batch abort" "option confirm off" "open ftp://[hiddenFTPdetails]" "put c:\work\test3.txt" "exit" & ECHO errorcode=%ERRORLEVEL%
batch abort
confirm off
Connecting to ftp://[hiddenFTPdetails] ...
Connected with ftp://[hiddenFTPdetails] Waiting for welcome message...
Connected
Starting the session...
Reading remote directory...
Session started.
Active session: [1] ftp://[hiddenFTPdetails]
File or folder 'c:\work\test3.txt' does not exist.
System Error. Code: 2.
The system cannot find the file specified
(A)bort, (R)etry, (S)kip, Ski(p) all: Abort
errorcode=0
NULL