winSCP returned with File does not exist: error code 2
I have been running WinSCP in scripting mode from a Windows batch file on a Windows 2003 server. I got into a situation where the Put operation complained about not finding the file to transfer, but I still did not get any Windows level error code back.
****************************************************
ftp log file:
*****************************************************
batch on
confirm off
Searching for host...
Connecting to host...
Authenticating...
Using username "user1".
Authenticating with pre-entered password.
Authenticated.
Starting the session...
Reading remote directory...
Session started.
Active session: [1] user1@jnj.com
/opt/cyc/common/data/out/EES/JNJ/CDRH_AERS
D:\eMDR\Outbound\EES\JNJ-ZZFDATST-CDRH-AERS-3500A-1012200915243-1-3OIT7E.xml | 0 KiB | 0.0 KiB/s | binary | 0%
File or folder 'D:\eMDR\Out\EES\JNJ-ZZFDATST-CDRH-AERS-3500A-1012200915243-1-3OIT7E.xml' does not exist.
System Error. Code: 2.
The system cannot find the file specified
(A)bort, (R)etry, (S)kip, Ski(p) all: Abort
*****************************************************************
As you see, the log file had an error code, but it did not get propagated onto the Windows batch file level.
The same script was properly running (returning no error code with successful run, returning error code with failed run) on the same server like about 60 times previously.
I would appreciate if you could reply ASAP.
Thanks,
Kati
****************************************************
ftp log file:
*****************************************************
batch on
confirm off
Searching for host...
Connecting to host...
Authenticating...
Using username "user1".
Authenticating with pre-entered password.
Authenticated.
Starting the session...
Reading remote directory...
Session started.
Active session: [1] user1@jnj.com
/opt/cyc/common/data/out/EES/JNJ/CDRH_AERS
D:\eMDR\Outbound\EES\JNJ-ZZFDATST-CDRH-AERS-3500A-1012200915243-1-3OIT7E.xml | 0 KiB | 0.0 KiB/s | binary | 0%
File or folder 'D:\eMDR\Out\EES\JNJ-ZZFDATST-CDRH-AERS-3500A-1012200915243-1-3OIT7E.xml' does not exist.
System Error. Code: 2.
The system cannot find the file specified
(A)bort, (R)etry, (S)kip, Ski(p) all: Abort
*****************************************************************
As you see, the log file had an error code, but it did not get propagated onto the Windows batch file level.
The same script was properly running (returning no error code with successful run, returning error code with failed run) on the same server like about 60 times previously.
I would appreciate if you could reply ASAP.
Thanks,
Kati