🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.misc
Article #9591

Environment variables in 4dos TEXT statements

#9591
From: Timothy J. Dezwaan
Date: Mon, 29 Apr 1991 22:18
23 lines
1000 bytes
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 
Technical Details
Message-ID: <1991Apr29.221843.6617@sactoh0.sac.ca.us>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!ucsd!ucbvax!ucdavis!csusac!sactoh0!tjd

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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