The system cannot find the file specified

Advertisement

madhatter0
Joined:
Posts:
4
Location:
NJ

The system cannot find the file specified

We will occasionally get this error when running a WinSCP script and trying to upload or download a number of files. This is usually caused by a 0 byte file, but is there a way to just skip that file and continue? Currently, when WinSCP encounters that error, the process fails and ends. Here is an excerpt of the log file:
> 2024-08-12 12:50:05.202 Script: Put -nopreservetime -nopermissions -transfer=ascii "D:\EDI\Live\Outbound\edi-file"
. 2024-08-12 12:50:05.203 Copying 1 files/directories to remote directory "/to_folder" - total size: 0
. 2024-08-12 12:50:05.203   PrTime: No; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask: 
. 2024-08-12 12:50:05.203   TM: A; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; EncryptNewFiles: Yes; ExcludeHiddenFiles: No; ExcludeEmptyDirectories: No; InclM: ; ResumeL: 0
. 2024-08-12 12:50:05.203   AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
* 2024-08-12 12:50:05.206 (EOSError) System Error.  Code: 2.
 
* 2024-08-12 12:50:05.206 The system cannot find the file specified
. 2024-08-12 12:50:05.207 Asking user:
. 2024-08-12 12:50:05.207 File or folder 'D:\EDI\Live\Outbound\edi-file' does not exist. ("System Error.  Code: 2.
 
. 2024-08-12 12:50:05.207 The system cannot find the file specified")
< 2024-08-12 12:50:05.207 Script: File or folder 'D:\EDI\Live\Outbound\edi-file' does not exist.
< 2024-08-12 12:50:05.207 Script: System Error.  Code: 2.
 
< 2024-08-12 12:50:05.207 The system cannot find the file specified
. 2024-08-12 12:50:05.208 Answer: Abort
* 2024-08-12 12:50:05.208 (ESkipFile) File or folder 'D:\EDI\Live\Outbound\edi-file' does not exist.
* 2024-08-12 12:50:05.208 System Error.  Code: 2.
* 2024-08-12 12:50:05.208 The system cannot find the file specified
. 2024-08-12 12:50:05.208 Copying finished: Transferred: 0, Elapsed: 0:00:00, CPS: 0/s
. 2024-08-12 12:50:05.208 Script: Failed
. 2024-08-12 12:50:05.208 Script: Exit code: 1
. 2024-08-12 12:50:05.208 Closing connection.
Is there a parameter that we can put in the command line?

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum