Tag: powershell
-
Copy File Path in Windows Explorer
Update: I’ve been notified by Mark that this is completely useless. Please disregard 🙂 In Win7 and 2008 you get the same option by just holding down Shift as you right-click. Thanks Mark! Ever find yourself in Windows, browing through files and needing to copy a file’s full path? As a developer, this seems to…
-
Capitalizing First Letter of Every Word with Powershell 2
I came across the need to captalize the first letter of every word (I needed this for names, including hyphenated names) with PowerShell, and learned that PowerShell 2 has a great feature that comes in handy here. I first tried using the PowerShell -replace operator but you can’t do function calls or anything complex in…
-
More PowerShell – a Cmdlet
This past weekend I spent some time reading up on and writing my first PowerShell cmdlet. The cmdlet is an easy one, but replaces a PS function I have copy/pasted into several scripts here and there to handle cleaning out directories of old backups or other types of files. One scenario is my RadioShark which I have setup…
-
Backups and my first foray into PowerShell
First, some background. Last week I received the final pieces of my backup strategy, a pair of 500 GB hard drives that I will be rotating periodically to some undisclosed location that isn’t my house. Right now, my fileserver makes backups and sticks them on a mirrored RAID array. These drives are simply to hold…