home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / alt / msdos / programm / 3095 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  943 b 

  1. Path: sparky!uunet!stanford.edu!hsdndev!cfa203!cfa.harvard.edu!babcock
  2. From: babcock@cfa.harvard.edu (Robert W. Babcock)
  3. Newsgroups: alt.msdos.programmer
  4. Subject: Re: Help Required with Dos variables
  5. Message-ID: <babcock.13.0@cfa.harvard.edu>
  6. Date: 5 Jan 93 00:22:06 GMT
  7. References: <1993Jan4.160029.26833@newton.ccs.tuns.ca> <babcock.12.0@cfa.harvard.edu> <1993Jan4.191855.9869@midway.uchicago.edu>
  8. Sender: news@head-cfa.harvard.edu
  9. Organization: Smithsonian Astrophysical Observatory
  10. Lines: 11
  11.  
  12. In article <1993Jan4.191855.9869@midway.uchicago.edu> pynq@quads.uchicago.edu (Jeremy Mathers) writes:
  13. >>In a batch file you could do something like
  14. >>  echo COMSPEC is %COMSPEC%
  15. >>This can be redirected.
  16. >
  17. >Well, no, in fact, it can't.  Batch file redirection doesn't work.
  18.  
  19. What I meant was that you can add indirection to the command inside the BAT 
  20. file, i.e.
  21.    echo COMSPEC is %COMSPEC% >>%1
  22. with suitable tests to make sure %1 is defined.
  23.