Skip to main content

Sending MSN Messages from the Command Line

As part of my education on Continuous Integration and automated builds from the ground up I've been playing with CruiseControl & SDCBuild. As a consequence the project I'm working on has a slick automated build process with unit tests being run etc...I've not got as far as getting CruiseControl and code coverage in yet but it's early days but I've got some great help on tap from Howard.

I wanted to add a setup project to the .NET solution so yesterday evening I went to add the new setup project and the solution file was checked out...and the developer had left the office! Grrr!

It got me thinking - if I could MSN the guys on the project with messages at a scheduled time (eg: 17:30..."Check your code in!") and also be able to send them build progress messages from SDC scripts it would be cool!

So I wrote a little utility application to do this and you can download SendMSN binaries from here or full source code from here. It's a .NET console app that you can call from scripts/batchfiles/cmdline to send a message to a multiple set of MSN recipients. It's a bit rough and ready but it works ok. I'd recommend reading the ReadMe.txt file for instructions and more information.

I'd be interested if you find this useful and in what context it helps you? Me, I'm going to schedule it on the dev server to nag my team into checking in code before they go home for the day, and just so it targets only the offending developers I'm going to write a little console app to run a VSS status report, parse it for names with files checked out and fire off a message to them via SendMSN!!

Enjoy!

Comments

I want to be able to post to blogger.com from MSN.

Make it so.
Hi james...
I looked ALL OVER THE INTERNET but cannot find the SENDMSN tool anymore.
I used it for monitoring my application. The harddrive that contained this small tool crashed a couple of days ago.

Can you PLEASE PLEASE sen dme the new link or email me the (small) program called sendmsn.

MANY MANY thanks in advance
menno
James Simmonds said…
Hey menno, that app was a long time ago and unfortunately the site hosting the code was closed down (without notice)...however I will do a trawl of my archives to see if I can find the source - if so I will post an update here.

I also have a new application, soon to launch that allows you to write custom code (to monitor something) and then send an alert to growl, the awesome system tray application. If this is something that could help you out I could send you an early drop of this

Popular posts from this blog

Walk-Thru: Using Wolfpack to automatically deploy and smoke test your system

First, some history... The advent of NuGet has revolutionised many many aspects of the .Net ecosystem; MyGet, Chocolatey & OctopusDeploy to name a few solutions building upon its success bring even more features to the table.

I also spotted that NuGet could solve a problem I was having with my OSS System Monitoring software Wolfpack; essentially this is a core application framework that uses plugins for extension (Wolfpack Contrib) but how to unify, standardise and streamline how these plugins are made available? NuGet to the rescue again - I wrapped the NuGet infrastructure (I deem NuGet to be so ubiquitous and stable that is has transcended into the software "infrastrucuture" hall of fame) with a new OSS project called Sidewinder. Sidewinder allows me to wrap all my little extension and plugins in NuGet packages and deploy them directly from the Wolfpack application - it even allows me to issue a new version of Wolfpack and have Wolfpack update itself, sweet huh?

Abou…

Resharper add-in idea - highlight IDisposable vars

[Update 18th July 2013]
@RobGibbens and Greg Hurlman picked up on this - Rob pointed out that there is an FxCop rule that can do this and Greg suggested a Visual Studio extension. I've had a quick look at the Visual Studio options and it looks like an "Editor Extension" is a good fit....hmmm, Project New, click...doh...dammit I really don't have time for this but it looks a fun little diversion! I'll update here if I get anything working.

[Original Post]
Had an interesting idea for a Visual Studio Resharper add-in the other day but don't have the time to implement it so thought I would put it out there...it might already exist (and hopefully someone can point me in the right direction) or someone will build it (Darren Voisey where are you?!).

The idea is very simple really - when you have a variable for an object that implements IDisposable it gets highlighted or a tell-tale is displayed to let you know it should be disposed or should be wrapped in a using sta…

Geckoboard Countdown Widget v2

v2 is here, now with added colours! This time using the RAG Numbers widget to display your date countdown - as you get nearer the date the number will change from green to amber then red.

The new url is: http://geckocountdown.appspot.com/rag/?date=2010-12-25&tz=0&msg=Days+to+Xmas!
Note 1: notice the new /rag/ path and the msg querystring param.
Note 2: the original v1 url still works


To use this on your Geckoboard add a new "Custom Widget/RAG Numbers" widget. By default the number will turn amber at 10 or less days to go and red at 3 or less days to go however you can change these with the querystring (see below).


Required querystring params
date: "yyyy-mm-dd" format, this is the target date to countdown totz: timezone offset in hours from GMT that you are in. Can be negative if you are behind GMT
Optional querystring params
msg: the label that appears next to the number of days (remember to encode spaces as +). The default is "Days Remaining" if you…