Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!ucsd!ucbvax!ucdavis!csusac!sactoh0!tjd From: tjd@sactoh0.sac.ca.us (Timothy J. Dezwaan) Newsgroups: comp.sys.ibm.pc.misc Subject: Environment variables in 4dos TEXT statements Message-ID: <1991Apr29.221843.6617@sactoh0.sac.ca.us> Date: 29 Apr 91 22:18:43 GMT Organization: Sacramento Public Access Unix Lines: 23 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