-batch=continue does not appear to work with winscp.com
Hi All,
Am I doing something wrong? I want the batch to work even if I make a spelling mistake. I do this so the logs contain useful data that identifies the user that ran my script.
Thanks,
Joe
Am I doing something wrong? I want the batch to work even if I make a spelling mistake. I do this so the logs contain useful data that identifies the user that ran my script.
Thanks,
Joe
C:\tmp\winscp>WinSCP.com /ini=nul /log=c:\tmp\winscp\companyftp.log /script=c:\tmp\winscp\companyscript.txt /explicit -batch=continue Connecting to ftpprd.company.net ... Connected Starting the session... Session started. Active session: [1] u13_securesap@ftpprd.company.net File or folder 'sUserName------------pfyuser' does not exist. System Error. Code: 2. The system cannot find the file specified (A)bort, (R)etry, (S)kip, Ski(p) all: Abort
. 2021-10-14 10:19:15.692 -------------------------------------------------------------------------- . 2021-10-14 10:19:15.693 WinSCP Version 5.19.3 (Build 11749) (OS 10.0.19042 - Windows 10 Enterprise) . 2021-10-14 10:19:15.693 Configuration: nul . 2021-10-14 10:19:15.693 Log level: Normal . 2021-10-14 10:19:15.693 Local account: company\pfyuser . 2021-10-14 10:19:15.693 Working directory: C:\tmp\winscp . 2021-10-14 10:19:15.693 Process ID: 28372 . 2021-10-14 10:19:15.763 Ancestor processes: WinSCP, cmd, explorer, ... . 2021-10-14 10:19:15.764 Command-line: "C:\tmp\winscp\WinSCP.exe" /console=5.19.3 /consoleinstance=_15700_844 "/ini=nul" "/log=c:\tmp\winscp\companyftp.log" "/script=c:\tmp\winscp\companyscript.txt" "/explicit" "-batch=continue" . 2021-10-14 10:19:15.764 Time zone: Current: GMT-4, Standard: GMT-5 (Eastern Standard Time), DST: GMT-4 (Eastern Daylight Time), DST Start: 3/14/2021, DST End: 11/7/2021 . 2021-10-14 10:19:15.764 Login time: Thursday, October 14, 2021 10:19:15 AM . 2021-10-14 10:19:15.764 -------------------------------------------------------------------------- . 2021-10-14 10:19:15.764 Script: Retrospectively logging previous script records: > 2021-10-14 10:19:15.764 Script: open ftp://u13_securesap:***@ftpprd.company.net:21 . 2021-10-14 10:19:15.764 -------------------------------------------------------------------------- . 2021-10-14 10:19:15.764 Session name: u13_securesap@ftpprd.company.net (Ad-Hoc site) . 2021-10-14 10:19:15.764 Host name: ftpprd.company.net (Port: 21) . 2021-10-14 10:19:15.765 User name: u13_securesap (Password: Yes, Key file: No, Passphrase: No) . 2021-10-14 10:19:15.765 Transfer Protocol: FTP . 2021-10-14 10:19:15.765 Ping type: Dummy, Ping interval: 30 sec; Timeout: 15 sec . 2021-10-14 10:19:15.765 Disable Nagle: No . 2021-10-14 10:19:15.765 Proxy: None . 2021-10-14 10:19:15.765 Send buffer: 262144 . 2021-10-14 10:19:15.765 UTF: Auto . 2021-10-14 10:19:15.765 FTPS: None [Client certificate: No] . 2021-10-14 10:19:15.765 FTP: Passive: Yes [Force IP: Auto]; MLSD: Auto [List all: Auto]; HOST: Auto . 2021-10-14 10:19:15.765 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes . 2021-10-14 10:19:15.765 Cache directory changes: Yes, Permanent: Yes . 2021-10-14 10:19:15.765 Recycle bin: Delete to: No, Overwritten to: No, Bin path: . 2021-10-14 10:19:15.765 Timezone offset: 0h 0m . 2021-10-14 10:19:15.765 -------------------------------------------------------------------------- < 2021-10-14 10:19:15.773 Script: Connecting to ftpprd.company.net ... . 2021-10-14 10:19:15.773 Connecting to ftpprd.company.net ... . 2021-10-14 10:19:15.813 Connected with ftpprd.company.net. Waiting for welcome message... < 2021-10-14 10:19:15.842 220 ProFTPD Server (ftpprd.company.net) [192.168.1.102] > 2021-10-14 10:19:15.842 USER u13_securesap < 2021-10-14 10:19:15.845 331 Password required for u13_securesap > 2021-10-14 10:19:15.845 PASS ********* < 2021-10-14 10:19:15.905 230 User u13_securesap logged in > 2021-10-14 10:19:15.905 SYST < 2021-10-14 10:19:15.907 215 UNIX Type: L8 > 2021-10-14 10:19:15.907 FEAT < 2021-10-14 10:19:15.909 211-Features: < 2021-10-14 10:19:15.910 211-AUTH TLS < 2021-10-14 10:19:15.910 211-CCC < 2021-10-14 10:19:15.910 211-CLNT < 2021-10-14 10:19:15.911 211-EPRT < 2021-10-14 10:19:15.912 211-EPSV < 2021-10-14 10:19:15.912 211-HOST < 2021-10-14 10:19:15.912 211-LANG en-US.UTF-8*;en-US < 2021-10-14 10:19:15.913 211-MDTM < 2021-10-14 10:19:15.913 211-MFF modify;UNIX.group;UNIX.mode; < 2021-10-14 10:19:15.913 211-MFMT < 2021-10-14 10:19:15.913 211-MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.groupname*;UNIX.mode*;UNIX.owner*;UNIX.ownername*; < 2021-10-14 10:19:15.913 211-PBSZ < 2021-10-14 10:19:15.913 211-PROT < 2021-10-14 10:19:15.913 211-REST STREAM < 2021-10-14 10:19:15.913 211-SITE COPY < 2021-10-14 10:19:15.913 211-SITE MKDIR < 2021-10-14 10:19:15.913 211-SITE RMDIR < 2021-10-14 10:19:15.913 211-SITE SYMLINK < 2021-10-14 10:19:15.913 211-SITE UTIME < 2021-10-14 10:19:15.913 211-SIZE < 2021-10-14 10:19:15.913 211-SSCN < 2021-10-14 10:19:15.913 211-TVFS < 2021-10-14 10:19:15.913 211-UTF8 < 2021-10-14 10:19:15.913 211 End > 2021-10-14 10:19:15.913 CLNT WinSCP-release-5.19.3 < 2021-10-14 10:19:15.916 200 OK > 2021-10-14 10:19:15.916 OPTS UTF8 ON < 2021-10-14 10:19:15.918 200 UTF8 set to on < 2021-10-14 10:19:15.918 Script: Connected . 2021-10-14 10:19:15.919 Connected . 2021-10-14 10:19:15.919 -------------------------------------------------------------------------- . 2021-10-14 10:19:15.919 Using FTP protocol. . 2021-10-14 10:19:15.919 Doing startup conversation with host. < 2021-10-14 10:19:15.919 Script: Starting the session... > 2021-10-14 10:19:15.920 PWD < 2021-10-14 10:19:15.924 257 "/" is the current directory . 2021-10-14 10:19:15.924 Getting current directory name. . 2021-10-14 10:19:15.924 Startup conversation with host finished. < 2021-10-14 10:19:15.924 Script: Session started. < 2021-10-14 10:19:15.925 Script: Active session: [1] u13_securesap@ftpprd.company.net > 2021-10-14 10:19:15.925 Script: put sUserName------------pfyuser . 2021-10-14 10:19:15.926 Copying 1 files/directories to remote directory "/" - total size: 0 . 2021-10-14 10:19:15.926 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask: . 2021-10-14 10:19:15.926 TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; EncryptNewFiles: Yes; ExcludeHiddenFiles: No; ExcludeEmptyDirectories: No; InclM: ; ResumeL: 0 . 2021-10-14 10:19:15.926 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml * 2021-10-14 10:19:15.927 (EOSError) System Error. Code: 2. * 2021-10-14 10:19:15.927 The system cannot find the file specified . 2021-10-14 10:19:15.927 Asking user: . 2021-10-14 10:19:15.928 File or folder 'sUserName------------pfyuser' does not exist. ("System Error. Code: 2. . 2021-10-14 10:19:15.928 The system cannot find the file specified") < 2021-10-14 10:19:15.928 Script: File or folder 'sUserName------------pfyuser' does not exist. < 2021-10-14 10:19:15.928 Script: System Error. Code: 2. < 2021-10-14 10:19:15.928 The system cannot find the file specified . 2021-10-14 10:19:15.929 Answer: Abort * 2021-10-14 10:19:15.929 (ESkipFile) File or folder 'sUserName------------pfyuser' does not exist. * 2021-10-14 10:19:15.929 System Error. Code: 2. * 2021-10-14 10:19:15.929 The system cannot find the file specified . 2021-10-14 10:19:15.929 Copying finished: Transferred: 0, Elapsed: 0:00:00, CPS: 0/s . 2021-10-14 10:19:15.929 Script: Failed . 2021-10-14 10:19:15.929 Script: Exit code: 1 . 2021-10-14 10:19:15.932 Disconnected from server