home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!emory!nntp.msstate.edu!news
- From: mrr1@Ra.MsState.Edu (mark r rauschkolb)
- Newsgroups: comp.os.msdos.apps
- Subject: Re: Wanted: redirect scrn output to file.
- Message-ID: <1992Aug26.132945.10682@ra.msstate.edu>
- Date: 26 Aug 92 13:29:45 GMT
- Article-I.D.: ra.1992Aug26.132945.10682
- References: <1992Aug25.182915.27527@news.nd.edu>
- Sender: news@ra.msstate.edu
- Reply-To: mrr1@Ra.MsState.Edu
- Organization: Mississippi State University
- Lines: 28
- Nntp-Posting-Host: isis.msstate.edu
-
- > >>I'm looking for a dos program to redirect screen output
- > >>from a standard .bat file to an output file. Does anybody
- > >>know of one that might help me out?
- > >
- > >
- > >When you run this BAT file, use the following syntax:
- > >
- > > runme.BAT > output.txt
- > >
- > >This will create/overwrite the file "output.txt" --
- >
- > Not true. At least on my system using dos 5, the above merely produces
- > a zero-length file called output.txt. You could, however, include the
- > redirection commands within the .bat file, e.g.
- > dir c: > OUTPUT.TXT
- > dir d: >> OUTPUT.TXT
- >
- > Another alternative would be to get a utility like PC Mag's prn2file,
- > which redirects printer output to a file. Execute prn2file, then
- > hit ctrl-prtscrn (or shift-prtscrn?) and then execute your bat file.
- > Simpler solutions are probably also around.
-
- But what if you want to redirect error messages? ">" doesn't catch std-error
- messages, and if you have more than one screenfull of messages, print-screen
- doesn't work.
-
- Mark
- mrr1@ra.msstate.,edu
-