1.

Solve : Batch Files and Logging?

Answer»

Is there any way of WRITING the output of a batch file as a program runs to a text file? There is no option with the .exe that I am running from the batch for logging. But would LIKE to keep track of what files it finds. These files are written to the screen as the file executes, but I would like to write these to a text file.

Any ideas

TCUse redirection.
>
To avoid over writing the original use >>
The double redirection appends the output instead of over writing the original. If you append output, create an empty file with the filename first.Thankyou thankyou thankyou!

I've been looking for this for over a week now! I was beginning to think it wasn't possible to log the changes...

Yay!

Now, all I have to do is get it to log the date as well... any SUGGESTIONS / ideas?
I ASSUME you are using WINDOWS or MS-DOS.

I use this to get the date/time into the log files:

date >C:\D\PEB\TXT\F_Bak_Log\F_Bak_Log.TXT
time >C:\D\PEB\TXT\F_Bak_Log\F_Bak_Log.TXT

HTH,
Phil.



Discussion

No Comment Found