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
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.
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
Summary: Hello: Need help with a DOS batch file. I am trying to write a very simple batch process, that checks if a DIR by the name MyFiles exists if it does not just creates it. Question is: How do I verify t...
Summary: Hello, I am a novice user and would like help in creating DOS batch files. What I am trying to do is create a batch file that can move files from one server to another and delete the files after the p...