home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.msdos.programmer
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uchinews!quads!pynq
- From: pynq@quads.uchicago.edu (Jeremy Mathers)
- Subject: Re: Help Required with Dos variables
- Message-ID: <1993Jan4.191855.9869@midway.uchicago.edu>
- Sender: news@uchinews.uchicago.edu (News System)
- Reply-To: pynq@midway.uchicago.edu
- Organization: D. J. Dougherty & Associates
- References: <1993Jan4.160029.26833@newton.ccs.tuns.ca> <babcock.12.0@cfa.harvard.edu>
- Date: Mon, 4 Jan 1993 19:18:55 GMT
- Lines: 26
-
- In article <babcock.12.0@cfa.harvard.edu> babcock@cfa.harvard.edu (Robert W. Babcock) writes:
- >In article <1993Jan4.160029.26833@newton.ccs.tuns.ca> macdonak@newton.ccs.tuns.ca (Kevin MacDonald) writes:
- >
- >>Is there any way to display the contents of a single DOS variable?
- >>I know you can display all current variables by typing SET, but there
- >>doesn't appear to be any way to display variables individually.
- >
- >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.
-
- While conceding that the inability to reference env vars directly from
- the shell is a enormous omission on the part of the COMMAND.COM
- designers (& I can already hear the 4DOSers gathering up their voices),
- I have had good luck with:
-
- set | grep VARNAME
-
- ************************************************************************
- If you didn't get caught, did you really do it?
-
- - pynq@quads.uchicago.edu, who is still costing the net
- hundreds, if not thousands, of dollars, every time he posts -
- ************************************************************************
-