Episode 41 - Star Blazers
Podcast March 6th, 2008
Recorded: March 4, 2008
Your Hosts: Keith Albright, Rich Niemeier, and Steve Murawski
Show Length: 54:58
My apologies if you are a fellow Star Blazers fan. I played the theme song at the end, but it wouldn’t play properly no matter how I edited. I’ll throw a link in the blog if you want it.
Thanks for listening and we hope you enjoy.
Links mentioned in this show:
- Great new shows over at the TechPodcast Network
- rPath Virtual Appliances
- Free PowerShell Server Admin booklet
- Deleting Old Files
- DelOld
- DelUpTo
- Nice Batch File Script
- See the Wiki for some PowerShell script alternatives
- Open Source Software from a VAR’s perspective
Other podcasts mentioned in this show:
Website Picks:
Keith:
Listen Now:











March 7th, 2008 at 2:35 am
Hi.
Loved the program. I wanted to share a script I use to delete SQL Server .bak and .trn files that are more than X days old.
You can change the defaults on the params and -inlcude, if yhou like, to include .txt or .log files.
Cheers.
######################################################################
# Script: Remove-OldFiles.ps1
# Purpose: remove all files X days old in given folder (recursively)
#
# Create/Change History:
# 8/13/2007 4:58:18 PM - gmilner: Created
#
# Parameters:
# $folder -> directory from which to delete - RECURSIVE!
# $dt -> Date after which to delete files
#
######################################################################
param( $folder = “C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup” , $dt =((Get-Date).AddDays(-5)))
dir $folder -recurse -include *.trn,*.bak | where { $_.LastWriteTime -le $dt } | remove-item
March 7th, 2008 at 7:00 am
Thanks for the link folks…
March 8th, 2008 at 7:34 am
One Line DOS Batch Script to delete files x days old
You need the FORFILES.EXE from one of the windows resource kits or free download from net.
FORFILES -pC:\Backups\Daily -s -m*.* -d-30 -c”CMD /C del /Q @FILE”