tuskee July 10, 2009 at 22:41:19 Specs: Windows 2000, 1 GB
I am trying to write a batch file that appends to a secondary log file from a log file that is being written by the system The system is generating a log.txt file situated at c:\temp\log.txt I want all the text that is being written on to this log file to be appended to another log file situated as d:\master\masterlog.txt This should happen whenever a user hits the "ENTER" key on the keyboard That is to say that the masterlog.txt file should keep adding additional text that was written onto the log.txt file by the system & save automatically
Thanks Mechanix2Go. I did this but its not appending the text to the masterlog.txt file. There is a blank file(masterlog.txt) only. Is there a possibility of appending whenever the "ENTER" key is hit by an user or it appends every 1 minute from the log.txt file to the masterlog.txt file
I tried again & infact i physically created c:\temp\log.txt file, ran the .bat file & also checked if it wrote back to the d:\master\masterlog.txt file Nothings happening Im on Windows 2000 Pro SP4 But ultimately it has to run on an XP machine Is there any other way to do this. Say it appends every 1 minute, if at all it can
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Purch hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.