Under Window 10 x64:
Code:
v22.00.1_$*cdd "c:\System Volume Information" & echo %_syserr
TCC: (Sys) The system cannot find the path specified.
"\System Volume Information"
3
v22.00.1_$*cdd "c:\System Volume Information" & echo %_?
TCC: (Sys) The system cannot find the path specified.
"\System Volume Information"
2
If I execute oe.btm my results are different than yours.
Code:
v22.00.1_$type oe.btm
on error ( echo the error was %_syserr )
*cdd "c:\System Volume Information"
v22.00.1_$oe
the error was 3
Perhaps the results differ because of the Windows version.
In any case I hope Rexx understands what you are suggesting.
I think the suggestions text explanation could be more concise. Examples are great so long as they are valid for the future of TCMD/TCC.
Oh well, you pointed to an inconsistency in how the variable %_syserr is set. When the command is successful I expected _syserr to be set to 0.
Also, when I have a "...The system cannot find the path specified..." (syserr 3) and I then have a "..The system cannot find the file specified..." the syserr variable doesn't change values in a batch file using ON ERROR.