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

Author Topic: Batch Log File  (Read 2970 times)

0 Members and 1 Guest are viewing this topic.

Colin McDonald

  • Guest
Batch Log File
« on: November 12, 2004, 05:18:43 AM »
Does anyone know of a way to capture all the echo'd commands etc that are reported on screen during the running of a batch file.

I would like to keep a log of each step of what one of my files is doing each time it is run

Thanks

MalikTous

  • Guest
Re: Batch Log File
« Reply #1 on: November 12, 2004, 08:22:21 AM »
In Win9x and earlier, you had a command 'Mode.com'.

mode con: c:\logfiles\logfile.txt
(batch file)
mode con: con:

You can either manually rename each log file or attach a code to name them different things so they don't overwrite each other.

I don't know if NT/XP offers 'Mode' support.

Colin

  • Guest
Re: Batch Log File
« Reply #2 on: November 18, 2004, 05:19:16 AM »
Just tried that, and it doesn't seem to work

I used

mode con: d:\admin\logfile.txt

It told me that mode was not recognised.

Thanks anyway


merlin_2

  • Guest
« Last Edit: November 18, 2004, 07:18:09 AM by merlin_2 »