How to get the content of a DOS variable?

rondbleu Posted messages 30 Registration date   Status Member -  
 Jef -
Hello,

I'm calling on the old-timers... I need to retrieve the content of the system variable errorlevel under DOS and I can't remember how to do it.
If someone could help me quickly...
Thanks in advance,
Rondbleu

4 answers

  1. Jef
     
    Response:
    echo %errorlevel%

    Or echo %errorlevel% > Variable.txt
    To write it to Variable.txt

    Jef
    3