Error 203?

May 20, 2008
11,400
99
Syracuse, NY, USA
I wrote this little plugin.
Code:
INT WINAPI _GLE ( WCHAR* psz )
{
    DWORD le = GetLastError();
    Sprintf(psz, L"%lu", le);
    return 0;
}

No matter how I use it, it gives 203.

Code:
v:\> type I_do_not_exist & echo %_gle
TCC: (Sys) The system cannot find the file specified.
 "V:\I_do_not_exist"
203

v:\> echo %@errtext[203]
The system could not find the environment option that was entered.
 
May 20, 2008
11,400
99
Syracuse, NY, USA
Isn't that what %_SYSERR is for?
I was trying to get around what seems to be a shortcoming of _SYSERR. It's not set if you have an "ON ERROR" routine. See my recent post in "Suggestions".

That's somewhat of a catch-22. If you want _SYSERR set, you can't have an "ON ERROR" routine. But without an "ON ERROR" routine, by the time you look at _SYSERR, you have already seen an error message.

IMHO, an "ON ERROR" routine is THE place to be looking at _SYSERR.
 
Similar threads
Thread starter Title Forum Replies Date
C Copy (sys) error Support 3
T Error: This page can’t be displayed Make sure the web address //ieframe.dll/dnserrordiagoff.htm# is correct. Support 8
kb6ojs How to? "Specified Account Already Exists" error installing TCMD v27 Support 12
samintz How to? Abort on error DO loop Support 10
mfarah Fixed The DATE command produces the wrong error message. Support 1
vefatica ON ERROR terminates DO loop. Support 0
C Google intregration error Support 4
C FB intregration error Support 0
gworley rd (Remove Directory) gives interesting error: Support 2
D How to? Skip removing directory (RMDIR) without error message Support 2
Dmitry L. Kobyakov Documentation Error in the Help: the WINDOW command Support 0
M Strange error messages from TCC in FTP copy Support 7
vefatica Error message from TOUCH Support 2
R FIND command error Support 9
fpefpe Python dll error Support 3
D error in help documentation? Support 0
R FOR usage error from TCC but not from CMD Support 16
K_Meinhard Help file error Support 1
X small translation error. Support 0
W pdir returns diff results between tcc and tcmd - one is an error msg Support 5
Dmitry L. Kobyakov From old version: had the setup's error been corrected? Support 6
vefatica Why no error message? Support 2
vefatica ON ERROR and pipes? Support 8
MickeyF Why does this batch file give me 'unknown command "else"' error? Support 17
Joe Caverly TASKDIALOG Help link error Support 1
J Error "Contents lost before copy" Support 3
vefatica What's causing this error? Support 4
C Activation Error. Support 2
J Error running Python at command line Support 9
Joe Caverly PSHELL Error? Support 16
M Fixed PSHELL command returns error Support 2
vefatica REGDIR, strange error message Support 7
O Error in plugin /u Support 2
O TPIPE: Error -Can´t access textpipeengine.dll Support 24
fpefpe How to? script error Support 1
fpefpe How to? script error Support 0
D Error 0xc0000142 and FAR Manager Support 10
F Powershell call fails with "Scripting Integrator 2016 (PowerShell)" license error Support 9
cgunhouse FTP Error Support 5
C How to? Error updating from 20.00.16 to 20.00.21 Support 10
vefatica Missing post and security error Support 4
samintz Documentation TCANSI error Support 8
vefatica WAD ON ERROR GOTO ... Support 11
dcantor Documentation Documentation error in UNSET Support 0
vefatica Error updating Support 2
C tpipe /simple=28 error Support 5
B Fixed Error messages from TCMD.INI Support 2
Alpengreis [Bug?] View (V) Prefs Error (TC 18.00.27 x64) Support 4
Bill de Haan HTTP Protocol error. 407 Proxy Authentication Required. Support 3
vefatica DO /S ... suppress error? Support 1

Similar threads