I was playing around with work items this afternoon, and wanted to delete a couple that I had been playing around with. You can't delete work items from Team Explorer, but you can using the Team Foundation Power Tools. So I opened the Visual Studio Command Prompt, and typed:
C:\Program Files\Microsoft Visual Studio 9.0\VC>tfpt
'tfpt' is not recognized as an internal or external command,
operable program or batch file.
Bummer, I guess the Power Tools install didn't add it to the environment variables. I decided to do it myself. First, I right-clicked on the Visual Studio Command Prompt shortcut and chose Properties. In the Target textbox, I could see it was calling C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat. Opening vcvarsall.bat, I found that it was calling vcvars32.bat in the bin directory. I opened vcvars32.bat only to find that it in turn called vsvars32.bat in the Common7\Tools directory.
I opened vsvars32.bat and was relieved to find that it wasn't calling yet another batch file. On line 25, I was able to append the path to the Team Foundation Power Tools, 'C:\Program Files\Microsoft Team Foundation Server 2008 Power Tools' before the '%PATH% variable at the end of the line.
It now looks like:
@set PATH=C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPackages;C:\Program Files\Microsoft Team Foundation Server 2008 Power Tools;%PATH%
Now I can run tfpt from the Visual Studio Command Prompt.