🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #1072

Re: Help Required with Dos variables

#1072
From: Robert W. Babcock
Date: Tue, 05 Jan 1993 00:22
11 lines
965 bytes
In article <1993Jan4.191855.9869@midway.uchicago.edu> pynq@quads.uchicago.edu (Jeremy Mathers) writes:
>>In a batch file you could do something like
>>  echo COMSPEC is %COMSPEC%
>>This can be redirected.
>
>Well, no, in fact, it can't.  Batch file redirection doesn't work.

What I meant was that you can add indirection to the command inside the BAT 
file, i.e.
   echo COMSPEC is %COMSPEC% >>%1
with suitable tests to make sure %1 is defined.
Technical Details
Message-ID: <babcock.13.0@cfa.harvard.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!hsdndev!cfa203!cfa.harvard.edu!babcock
References: <1993Jan4.160029.26833@newton.ccs.tuns.ca> <babcock.12.0@cfa.harvard.edu> <1993Jan4.191855.9869@midway.uchicago.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!hsdndev!cfa203!cfa.harvard.edu!babcock
From: babcock@cfa.harvard.edu (Robert W. Babcock)
Newsgroups: alt.msdos.programmer
Subject: Re: Help Required with Dos variables
Message-ID: <babcock.13.0@cfa.harvard.edu>
Date: 5 Jan 93 00:22:06 GMT
References: <1993Jan4.160029.26833@newton.ccs.tuns.ca> <babcock.12.0@cfa.harvard.edu> <1993Jan4.191855.9869@midway.uchicago.edu>
Sender: news@head-cfa.harvard.edu
Organization: Smithsonian Astrophysical Observatory
Lines: 11