home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.msdos.programmer:11914 comp.os.msdos.misc:6911
- Path: sparky!uunet!mcsun!uknet!bcc.ac.uk!ts-b.bcc.ac.uk!uclyjjd
- From: uclyjjd@ucl.ac.uk (Julian Daley)
- Newsgroups: comp.os.msdos.programmer,comp.os.msdos.misc
- Subject: Redirecting output from a batch file.
- Keywords: batch redirection
- Message-ID: <1993Jan8.124018.22988@ucl.ac.uk>
- Date: 8 Jan 93 12:40:18 GMT
- Organization: Bloomsbury Computing Consortium
- Lines: 25
-
- Here's an easy one .....
-
- How do I redirect standard output from a .BAT file ?
-
- If I have a one line file TEST.BAT which looks like this -
- @echo Hello World
-
- and I type ...
-
- TEST > TEST.OUT
-
- ... at the C> prompt I get "Hello World" on the screen and a 0
- length file, TEST.OUT
-
- Is this correct behaviour under DOS 5 ?
- Am I going mad ?
- Should I switch to UNIX ? (OK, I know the answer to that one !)
-
- Julian.
-
- --
- _____________________________________________________
- | Julian Daley, j.daley@ucl.ac.uk |
- | Department Clinical Physics, Guys Hospital, London. |
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-