Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Problems with logging - HELP!  (Read 6901 times)

0 Members and 1 Guest are viewing this topic.

S. Tao

  • Guest
Problems with logging - HELP!
« 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!

2k dummy

  • Guest
Re: Problems with logging - HELP!
« 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.

SKy

  • Guest
Re: Problems with logging - HELP!
« 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.

Suntiger

  • Guest
Re: Problems with logging - HELP!
« 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.

MalikTous

  • Guest
Re: Problems with logging - HELP!
« 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 »