Adding TFPT.exe to your PATH

I know. I know. This doesn’t sound like a very interesting post, but it saved me time, and hopefully it can save you some too.

When you install Visual Studio 2008, Microsoft creates a “Visual Studio 2008 Command Prompt” shortcut, under that program group.


I like to take this shortcut and drop it on my Quick Launch toolbar:


The problem is that when you install the Team Foundation Server Power Tools (or other new command line utilities) you need to put them in the path.

Well, if you look at the file the shortcut calls, it’s vcvarsall.bat, but don’t bother editing that file because it calls vcvars32.bat, but don’t bother editing that file, because it calls vsvars32.bat. If you go ahead and edit that file, you can find where the PATH is getting set, and add the Power Tools path to it:

@set PATH=C:Program FilesMicrosoft Visual Studio 9.0Common7IDE;C:Program FilesMicrosoft Visual Studio 9.0VCBIN;C:Program FilesMicrosoft Visual Studio 9.0Common7Tools;C:WINDOWSMicrosoft.NETFrameworkv3.5;C:WINDOWSMicrosoft.NETFrameworkv2.0.50727;C:Program FilesMicrosoft Visual Studio 9.0VCVCPackages;C:Program FilesMicrosoft Team Foundation Server 2008 Power Tools;%PATH%