11 replies
by cactus pete
Do you know, or are you willing to learn how Windows scripting works? It's actually a simple VBScript that you can even schedule to run...
But remember, a little knowledge can be a dangerous thing, so you need to learn more than is necessary to just create this script.
This is the only thing that prevents me from posting a sample outright... Your environment/needs can vary slightly, and too much may be deleted by accident.
Now that the disclaimer is overwith... I'd say that you can probably write 8 lines of VBS to accomplish that.
by jfrench
by cactus pete
Look at his books. They were very informative and easy to follow with great examples for real world application.
Specifically, fo you, I would suggest:
Windows NT Shell Scripting and
Windows Script Host
by joseph moore
I could probably do this in a BAT file, using the FOR command.
I just need to know how the .log files are named, if they have the date in their file names or not.
by cactus pete
by jfrench
Older than the same date last month would work. Basically these log files record every transaction through them... so if there is a problem we need to send them to our vendor so their programmers can look at them. However, these directorys have quickly grown since a single log file sometimes can be a gig in size.
*mutters* pay so much for a system and they can't even manage their own log files
There is a freeware utility called XDel that has several date-specific options. Sorry, I don't have a URL, I have it on my PC at home but not here at work.
If you can't find it, I could write a comparable program for you (free) if you're interested.
Ralph
by jfrench
by cactus pete
Perhaps what you really need to an "AutoArchiver" application.
I needed that at my last job - a financial trading company. Basically, we wrote an application that would zip the log files and write them to another file/directory named by date. It was very self-contained... Unfortunately, I can't give it to you, as it belongs to that company. But I can describe it to anyone who needs to know what to reproduce...
by jfrench
by jfrench
I'll probably buy them from amazon tonight... Not sure if I can learn that in time for this problem though.
If anyone would like to take the time to write the scripts, e-mail me and I'll send a listing of all the log file naming conventions used.
This discussion is closed to new replies.
Trending IT Employment posts
Sort by Trending