Charles Dye
Super Moderator
- May
- 5,357
- 163
Staff member
This is of absolutely no importance, but it bothers me that I can't understand what's going on here.
If variable N is set to zero, then how can %@ERRTEXT[%N] possibly differ from %@ERRTEXT[0] ?
Code:
C:\>echo %@errtext[0]
The operation completed successfully.
C:\>set n=0
C:\>echo %@errtext[%n]
The system could not find the environment option that was entered.
C:\>echo %@errtext[%n%]
The operation completed successfully.
C:\>echo %n %@errtext[%n]
0 The system could not find the environment option that was entered.
C:\>echo %n %@errtext[%n%]
0 The system could not find the environment option that was entered.
C:\>echo %n% %@errtext[%n%]
0 The operation completed successfully.
C:\>for /l %i in ( 0, 1, 0 ) echo %i %@errtext[%i]
0 The system could not find the environment option that was entered.
C:\>
If variable N is set to zero, then how can %@ERRTEXT[%N] possibly differ from %@ERRTEXT[0] ?