Tags


techdays-2010

If you’re like me and you can’t WAIT for Techdays, here’s a simple little Powershell script you can run to tell you how many days until Techdays at your local city!

—————- Start Script ———————

CLEAR-HOST

$Locations=@()

$Locations+=("Edmonton","10/6/2010"),("Toronto","10/27/2010"),("Halifax","11/02/2010"), ("Ottawa","11/09/2010"),("Montreal","11/23/2010"),("Winnipeg","12/07/2010"), ("Calgary","12/14/2010")

WRITE-HOST ‘Countdown to Techdays 2010 Canada’
WRITE-HOST ‘———————————‘

WRITE-HOST ‘Vancouver,Edmonton,Toronto,Halifax,Ottawa,Montreal,Winnipeg or Calgary?’

$CITY=READ-HOST ‘Which Techdays City ?’
WRITE-HOST

$CountdownDate=$Locations | where { $_  -like $CITY }

$RemainingDays=([datetime]$CountdownDate[1]-(GET-DATE)).Days
$CityName=$CountdownDate[0]

WRITE-HOST "It is $RemainingDays days until Techdays at $CITY"

—————- End Script ———————

Oh I just checked!  Edmonton is only 15 days away! Have you Registered?

Advertisements