Computing.Net > Forums > Disk Operating System > Logging DOS Batch files

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Logging DOS Batch files

Reply to Message Icon

Name: gareth
Date: June 14, 2000 at 03:26:04 Pacific
Comment:

Hello,

I am looking for a command(s) to copy the output/execution of a batch file to a log file. I still need the user to be able to see outputs and input variables.

Thanks

Gareth



Sponsored Link
Ads by Google

Response Number 1
Name: Th' Cat
Date: June 16, 2000 at 02:54:07 Pacific
Reply:

I think I know what you mean try :-

BATCHFILE.BAT > LOGFILE.LTXT

That will create a new file called LOGFILE.TXT which you canview in wordpad. If you want to append to that file later replace > with >>

Hope this helps
Th' Cat


0

Response Number 2
Name: Dean Allmann
Date: June 19, 2000 at 13:04:05 Pacific
Reply:

Hi,

I'm having the same/similar problem as Gareth. I would like a duplicate copy of the screen output recorded in a .txt log file. It is important that the user still sees everything on the screen. I have tried the suggestion from Th'Cat, but it redirects all screen output instead of copying the screen output. Does anyone know if this can be done?

Thanks,

Dean.


0

Response Number 3
Name: Kathy Cahalan
Date: November 14, 2000 at 07:06:00 Pacific
Reply:

here is a web site that explains how to log batch file information

http://www.wccnet.org/dept/cis/mod/q10cd.htm#Echoing


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


no logon server-wuin95 Mouse commands in batch f...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Logging DOS Batch files

Need help with a Dos batch file www.computing.net/answers/dos/need-help-with-a-dos-batch-file/13006.html

Dos Batch File Commands www.computing.net/answers/dos/dos-batch-file-commands/11921.html

File Size in DOS Batch file www.computing.net/answers/dos/file-size-in-dos-batch-file/3105.html