home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / msdos / apps / 4510 < prev    next >
Encoding:
Internet Message Format  |  1992-08-26  |  1.5 KB

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