I’ve been sharing some Valentine’s Day themed fun on Twitter today. This one is a bit too long to fit into a tweet. $text = “Happy$([char]3)Valentine’s$([char]3)Day” $text.ToCharArray() | foreach -begin { $colors = “Cyan”,”Magenta”,”Yellow”,”White”,”Red”,”DarkRed”,”Green” } -process { write-host $_ -NoNewline -ForegroundColor ($colors| Get-Random)} -end {“`n”} To get the full effect you need to run in…
Day: February 14, 2014
Friday Fun: The Measure of a File
I’ve been working with PowerShell since the days of Monad and have written a lot of PowerShell scripts. Out of idle curiosity, and the need for a Friday Fun topic, I decided to see how many lines of PowerShell I have written. Or at least that are in my Scripts folder. Turns out I have…