Article View: comp.os.msdos.programmer
Article #7532Redirecting output from a batch file.
From: Julian Daley
Date: Fri, 08 Jan 1993 12:40
Date: Fri, 08 Jan 1993 12:40
25 lines
1062 bytes
1062 bytes
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. |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Technical Details
Message-ID:
<1993Jan8.124018.22988@ucl.ac.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!bcc.ac.uk!ts-b.bcc.ac.uk!uclyjjdShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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