Make sure the VS install location is a part of your path.
This blog post has moved to http://saraford.net/2005/05/16/did-you-know-how-to-use-visual-studio-to-open-a-file-via-the-command-line/