Home / Microsoft / Microsoft DOS / Problems with logging - HELP!
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: Problems with logging - HELP!  (Read 1832 times)
S. Tao
Guest
« on: July 01, 2004, 10:11:45 AM »

I have a problem in that I know there is a way to echo/print all input and output of a DOS box to a text file, but I cannot remember how to do it. Does anyone here know how?

Thanks!
IP logged
2k dummy
Guest
« Reply #1 on: July 05, 2004, 08:12:55 PM »

You need to be more specific in what you are trying to do. When redirecting input/output you can't have your cake and eat it too.
IP logged
SKy
Guest
« Reply #2 on: July 07, 2004, 07:11:04 AM »

mayb u can use >

example c:\ dir > test.txt
re-directs the output from 'dir' command to the file 'test.txt'

u can use it for printer... i think the command is
> lpt1
change lpt1 to the name of your printer port

can also use >> for appending to the end of a file.
IP logged
Suntiger
Guest
« Reply #3 on: July 08, 2004, 10:36:18 AM »

Yeah, I know about > and >>, but that would require me to type >> C:\txt.txt after every command. What i'm looking for is more of a way to automatically create a text logfile containing all input/output for the session I'm in, preferably by typing a command at the beginning of said session. So what I'm really looking for is a way to pipe everything that has been displayed in the DOS box to a file. I'm fairly certain it can be done, I have simply forgotten how.
IP logged
MalikTous
Guest
« Reply #4 on: July 15, 2004, 06:06:21 PM »

I think you use mode con:=prn: before the section you want to print, then mode con:=con: or mode con:=stdio: at the end. If you don't return con: (console) to default after running the file, DOS will continue to send all its output to PRN: (printer on LPT1:) or whatever other port it has been assigned (a terminal on COM1:, the null device (nul:), etc.
« Last Edit: July 15, 2004, 06:06:43 PM by MalikTous » IP logged
Pages: [1] - (Top) Print 
Home / Microsoft / Microsoft DOS / Problems with logging - HELP! « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.099 seconds with 18 queries.