Browse by Tags

All Tags » Powershell (RSS)

2008 Scripting Games - My solutions

Here are my solutions to the 2008 Scripting Games scripting competition. This is a rather large post but I decided one post would be better than posting them all individually, this way they will all be in one place when I want to find them later. I had...

2008 Scripting Games

It’s the third annual Scripting Games , the biggest scripting competition of the year! As a matter of fact, it’s most likely the biggest scripting competition ever . (The fact that it may be the only scripting competition is beside the point.) The games...
Posted by puzzlehacker | 2 comment(s)
Filed under: , ,

Powershell script to find strings and highlight them in the output

After reading about Brad 's find script I starting thinking about how cool it would be if I could highlight the search pattern in the output. So I wrote my own custom Find-String script to highlight the results. Find-String.ps1 # Find-String.ps1 # Wrapper...
Posted by puzzlehacker | 2 comment(s)
Filed under: , ,

Retrieving your Outlook appointments for a given date range

Before we dive into the code sample lets take a quick look at what it means for an appointment to fall into a given date range. When you compare an appointment with a given date range (or any two time intervals) there are the 6 possible outcomes displayed...
Posted by puzzlehacker | 6 comment(s)
Filed under: , , ,

Powershell version of cmd set

If you are like me and are just so used to typing set to list and set environment variables then you might find this script useful. if ( test-path alias:set) { remove-item alias:set > $null } function set { [string] $var = $args if ( $var -eq "" )...

Added support for Monad scripts to CodeHTMLer

For all those people posting Monad scripts to their blogs you might be interested in making your scripts look better by using CodeHTMLer . Just paste in your code script and select MSH as the language and it will output some stylized HTML that can easily...
Posted by puzzlehacker | 1 comment(s)
Filed under: , ,

Monad script to convert your doskey macros to Monad functions

Last week I talked about how I wanted to write a script to convert my doskey macros into Monad functions. I used this opportunity to learn about writing scripts in Monad. I must say I'm impressed so far, it has been pretty easy to pickup. The one thing...
Posted by puzzlehacker | with no comments
Filed under: ,

Monad Resources

Lee Holmes posted a bunch of good Monad links so I figured I would also post them for others and also for my future reference. Thanks Lee ! Monad Team Blog: http://blogs.msdn.com/monad/default.aspx Adam Barr's Blog: http://www.proudlyserving.com/ My earlier...
Posted by puzzlehacker | with no comments
Filed under:

Monad A.K.A. Microsoft Command Shell

I've finally got some time to start playing with Monad (Microsoft's new command shell). If you are interested the Monad blog has links to download Monad beta2. I have been using it for about a week now and the biggest hurdle has been getting my shell...
Posted by puzzlehacker | with no comments
Filed under:
More Posts