Cleanup Old Log Files (revisited)

Back in Nov-2006 I wrote about a free script (WaRmZip) you could download to be used for deleting old log files. That script includes a lot of features and flexibility.


Here’s a simpler script that does a similar cleanup of old log files that you might find useful. It includes a .vbs backend script plus a simple one line .bat batch file script that can be added to your SBS scheduler.


1. You can download a zip file from my website that contains the .vbs file, a sample .bat file and a sample log file. To keep things simply, I store these files on my SBS server’s in a C:\scripts folder.


2. The .vbs file does not need any editing at all. It is designed to search, starting at a specified folder, plus all sub folders below it. Howerver, if you wish to play it safe while testing, you can edit the .vbs file and remark out the file.delete line located on line 37 near the end of the script.


3. The .bat file will define the starting folder and the age of files to be deleted, and will create a log file so you can track the files deleted. This batch file can then be scheduled to run daily, weekly or whatever. You can either create separate batch files or just add additional cscript lines to this one batch file.


Here’s an example of the batch file IU use to cleanup IIS log files over 30 days old:


cscript c:\scripts\deloldfiles.vbs c:\windows\system32\logfiles 30 >> c:\scripts\iis.log

And here is part of the corresponding log file it creates:

Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
Today:12/29/2007 8:32:06 AM
Started deleting files older than :11/29/2007 8:32:06 AM
________________________________________________
Deleting Files under the Folder:C:\WINDOWS\system32\LogFiles
__________________________________________________________________________
Deleting C:\WINDOWS\system32\LogFiles\IN071105.log last modified: 11/5/2007 7:18:34 PM
Deleting C:\WINDOWS\system32\LogFiles\IN071110.log last modified: 11/10/2007 3:47:43 PM
Deleting C:\WINDOWS\system32\LogFiles\IN071118.log last modified: 11/18/2007 11:55:00 AM
Deleting C:\WINDOWS\system32\LogFiles\IN071123.log last modified: 11/23/2007 11:43:26 PM
__________________________________________________________________________
Completed deleting files older than :11/29/2007 8:32:06 AM
________________________________________________


Enjoy!

2007-12-25 "Mary, Did You Know?"

First, I wish everyone a very safe, joyous and wonderful Christmas holiday.


Thanks for everyone’s words of encouragement to me this past year as I suffered through several physical problems and illnesses. On my road to recovery, I decided to step away from my full time position I”ve had for the last 4 years and return to working for myself, selling  and installing SBS wherever I can.


I close out my month of Christmas songs with a fairly new Christmas song (1984) written by Mark Lowry and Buddy Green called “Mary, Did You Know”. It’s been recorded by many people, but IMHO Kathy Mattea’s version is the best. I recently found a video of Kathy Mattea performing this song (with the words appearing on the bottom of the screen).


I hope you enjoy it. Merry Christmas.


-kw

2007-12-24 "O Come All Ye Faithful"

Well, here it is … Christmas eve! And whether or not you celebrate Christmas, it’s still a wonderful time of the year to reflect on all the good things that people have done for us this past year. The movie Pay It Forward from a few years ago showed how doing one good deed to another human being could change that person’s life. Let’s take time to give thanks to those people who have been generous to us, especially to all those who support the SBS newsgroups.


Today’s song is one of the traditional Chrisitmas hymns. I remember (and still love) singing it in Latin (Adeste Fideles). Enjoy!


O Come, All Ye Newsgroups
aka O Come, All Ye Faithful


O come all ye newsgroups,
Filled with all our problems
O come ye, O help us now with Microsoft
Please come and show us,
Pleads the hot fix chorus


O come let us install it
O please don’t let it crash now
O come let us reboot now … yes, it’s up!


O come, all ye newbies,
SBS is rocking
Post, all the MVP’s are waiting to help
Susan is blogging
Microsoft is list’ning 


O, come we should upgrade now
We hear that R2’s great now
And Cougar in ’08, wow
Sixty four bits!


-kw

2007-12-23 "A Baby Just Like You"

I love finding non-traditional Christmas songs that include a universal message of joy and peace, no matter what your particular religious or spiritual slant may be. We have just a short time on this earth, and we should strive to make it a better place for the coming generations.


John Denver penned this song over 30 years ago for the baby (Zachary) that he and his wife adopted. It’s simple and yet has a special charm and feel about it. I’m not going to change the words to the song at all. I hope you enjoy it!


And here’s a video link of Chris Westfall performing this song.


A Baby Just Like You


John Denver, J. Henry (c) 1975


The season is upon us now
A time for gifts and giving
And as the year draws to its close
I think about my living


The Christmas time when I was young,
The magic and the wonder,
But colors dull and candles dim,
And dark my standing under


O little Zachary, shining light
You’ve set my soul to dreaming
You’ve given back my joy in life
And filled me with new meaning


A Savior King was born that day,
A baby just like you,
And as the Magi came with gifts,
I come with my gift too


That peace on Earth fills up your time,
That brotherhood surrounds you.
That you may know the warmth of love,
And wrap it all around you


It’s just a wish, a dream I’m told
From days when I was young
Merry Christmas, little Zachary
Merry Christmas, everyone
Merry Christmas, little Zachary
Merry Christmas, everyone


-kw

2007-12-22 "Let It Snow!"

Well as I check the weather this morning, here’s what I see for the forecast highs today: Seattle 38F, Sacramento 29F, Omaha 24F, Dallas 56F, New York 36F, New Orleans 63F, and Tampa 57F.


And for our non-US readers, we have: London 46F/7C, Munich 25F/-4C, Brussels 44F/7C, Sao Paulo 79F/26C, Sydney 66F/19C, Aukland 63F/17C, Singapore 79F/26C, Ottawa 27F/-3C, Edmonton 1F/-17C


You get the picture … it’s cold in most places, and warm in other places. But wherever we are, hopefully we have a chance to put a smile on someone’s face. So go out and do something nice for someone … surprise them!


And while we do it, we can be singing this favorite Christmas carol, Let It Snow. And here’s Andy Williams version of the song to listen.


Just Say No!
aka Let It Snow!


Oh the server’s been running fine now
But I’ve got this patch to load now
But since I didn’t backup last night
Let It Go! Let It Go! Just Say No!

My boss now wants to by an iPhone
And he wants to have it syncing
Though the commercials make it look so good
Let It Go! Let It Go! Just Say No!


When I finally leave tonight
How I’ll hate going out to the mall
All of the stores will be jammed up tight
With people wanting to buy it all

The server is slowly dying
And, I fear, I’m really not trying
I’d rather be at home right now
So Let It Go! Let It Go! Just Go Home!


 

2007-12-21 "Rudolph, The Red-Nosed Reindeer"

I just finished watching “The Polar Express” with my daughter tonight. It’s become a family tradition to make some hot chocolate and drink it while watching Tom Hanks sing the “Hot, Hot, Hot Chocolate” song in the movie.


We all have our own traditions and ways to celebrate with family and friends. I’m reminded that the world does not revolve around computers, although computers (not love) may make the world go ’round!


So, let’s get into the Christmas spirit and join in a song that children and adults love to sing!


Windows, the Red-Nosed Software
aka Rudolph, the Red-Nosed Reindeer


You know Unix and Office
And Outlook and Google
Adobe and Quicken
And Linux and Apple
But do you recall
The most famous software of all?

Windows, the red-nosed software
Struggled from the very start
And when you tried to use it
Others asked if you were smart


All of the other software
Used to laugh and call it names
They never thought that Windows
Was good for anything but games


And one dreary Christmas Eve
Bill Gates came to say
Windows with your code so tight
Why can’t you just shutdown right?


Then all his software coders
Working straight thru New Year’s Eve
Said they could make it work right
But still I get a BSOD!


 

2007-12-20 "Christmas in Killarney"

One of my top three Christmas albums of all times is Bing Crosby’s White Christmas, first released in 1945. If you want to know my other top two Christmas albums, keep reading past the song lyrics. Bing and the Andrews Sisters, a cup of hot chocalate, and family and friends around … make for a wonderful Christmas event.


One of the songs from this album is Christmas in Killarney. Here is a link to an Irish version of the song. Hopefully everyone will have a delightful and wonderful holiday with family and friends. But we all fear the phone call late on Christmas Eve …


Christmas At The Office
aka Christmas In Killarney


The network’s down, with no e-mail
The ugliest scene I can recall
It’s Christmas at the office
And not with the folks at home

It’s tough, you know, to kiss your beau
And leave her under the mistletoe
‘Cause when the server’s down, of course
It’s gonna be time to go

The door’s already open
The boss is pacing the hall
And your ISP before you’re done
Will claim it’s not their fault

How grand it feels to click your heels
And join in the fun of the jigs and reels
I’m handing you no blarney
The likes you’ve never known
It’s Christmas at the office
While everyone’s still at home!

Oh, my other favorite Christmas albums?


One is John Denver and the Muppets A Christmas Together. and the other is Kathy Mattea’s Good News Christmas album. Then, running close behind these are Christmas albums from Harry Connick Jr, Kenny G, and Steve Wariner. Finally, if you want to hear a wonderful a capella group from Minnesota that put out a fabulous Christmas CD and DVD, check out Tonic-Sol-Fa


Merry Christmas!


-kw

Outlook 2007 Calendar Printing Assistant

For those of you using Office/Outlook 2007, here’s a Microsoft add-on that hasn’t gotten much press … it’s called the Calendar Printing Assistant for Outlook 2007 — or CPAO for short (kapow!).


After installing it, you might have trouble finding it — I certainly did. You won’t find it in Outlook. Instead, click on All Programs > Microsoft Office > Microsoft Office Tools and you will find the link for CPAO.


My take? For what it does, it does nicely. It gives you a variety of templates (daily, weekly, monthly, yearly). But the level of customization available is very limited. In other words, it is not a replacement for those using Calendar Creator! But perhaps there will be a version 2.0. We can only hope!