home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
- 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.
-