home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / msdos / programm / 11914 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.1 KB

  1. Xref: sparky comp.os.msdos.programmer:11914 comp.os.msdos.misc:6911
  2. Path: sparky!uunet!mcsun!uknet!bcc.ac.uk!ts-b.bcc.ac.uk!uclyjjd
  3. From: uclyjjd@ucl.ac.uk (Julian Daley)
  4. Newsgroups: comp.os.msdos.programmer,comp.os.msdos.misc
  5. Subject: Redirecting output from a batch file.
  6. Keywords: batch redirection
  7. Message-ID: <1993Jan8.124018.22988@ucl.ac.uk>
  8. Date: 8 Jan 93 12:40:18 GMT
  9. Organization: Bloomsbury Computing Consortium
  10. Lines: 25
  11.  
  12. Here's an easy one .....
  13.  
  14. How do I redirect standard output from a .BAT file ?
  15.  
  16. If I have a one line file TEST.BAT which looks like this -
  17. @echo Hello World
  18.  
  19. and I type ...
  20.  
  21. TEST > TEST.OUT
  22.  
  23. ... at the C> prompt I get "Hello World" on the screen and a 0 
  24. length file, TEST.OUT
  25.  
  26. Is this correct behaviour under DOS 5 ?
  27. Am I going mad ?
  28. Should I switch to UNIX ? (OK, I know the answer to that one !)
  29.  
  30. Julian.
  31.  
  32. --
  33.         _____________________________________________________
  34.        | Julian Daley,                     j.daley@ucl.ac.uk |
  35.        | Department Clinical Physics, Guys Hospital, London. |
  36.         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  37.