[comp.sys.ibm.pc.misc] Environment variables in 4dos TEXT statements

tjd@sactoh0.sac.ca.us (Timothy J. Dezwaan) (04/30/91)

Does anyone know how to insert environment variables into a text -
endtext block in a 4dos batch file?

For example, the output of "echo errorlevel is %?." sends
"errorlevel is 5" to the screen.  (Assuming errorlevel is
currently equal to 5 of course.)

On the other hand,

text
   Danger!
   errorlevel is %?.
endtext

does not expand the environment variable and sends "errorlevel is %?."

Anyone know how to do this?  Is so, please email and I'll post a
summary.


-- 
  Timothy De Zwaan               tjd@sactoh0.SAC.CA.US              
                             ...ames!pacbell!sactoh0!tjd