Circular Logging Batch File - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 12-17-2007, 03:23 PM   #1 (permalink)
Newb Techie
 
Join Date: Dec 2007
Posts: 5
Default Circular Logging Batch File

Does anyone know of a way to implement Circular Logging in a batch file. I am trying to create a batch file that will copy the Event Logs to a user profile every day and delete all otehr files that are over 5 days old. Any ideas?

I will also post this in the Programming Forum as well.
__________________

mtbjunkie is offline  
Old 12-26-2007, 03:35 PM   #2 (permalink)
Monster Techie
 
Join Date: May 2004
Location: /usr/root/mn/us
Posts: 1,118
Default Re: Circular Logging Batch File

Take a look at this article on getting event logs via command line
Event Logging via Command Line

As far as deleting over 5 days old, you may want to look into using vbs instead of a batch file.
__________________

Its a frigging Laptop, not a Labtop!!!!
bla!! is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WTF is a Bad Block? MikesCreation Hardware Repairs and Troubleshooting 18 02-24-2008 09:31 PM
Hard Drive Errors!!! Bad or Faulty HDD? mike4realz Hardware Repairs and Troubleshooting 3 09-19-2007 01:56 AM
seagate 80gigs failing.. acuariano Hardware Repairs and Troubleshooting 27 08-27-2007 10:43 PM
Another Hijack Log boo HijackThis Logs (finished) 17 06-26-2007 12:30 PM
Batch file steak1986 Microsoft Windows and Software 6 04-11-2007 06:03 PM



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 01:07 PM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.