In case you haven't heard of the VS.Net command prompt here “utility” and you find yourself on the command line needing VS.Net variables set, you should really check it out you can get it from Mike Gunderloy's site and if you don't subscribe his Daily Grind you should also check it out. He has versions of the Command Prompt here for both VS.Net 2002 and VS.Net 2003.
This weekend while doing my laptop rebuild I took Mike's script and editted it for VS.Net 2005. Here is the link to VS.Net 2005 Command Prompt Here.