in

Platinum Bay

Peace, Love and Visual Studio Team System

.NETicated

Adding TFPT to the Visual Studio Command Prompt

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.

Published Mar 01 2008, 03:18 PM by Steve
Filed under: ,

Comments

No Comments

Leave a Comment

(required )  
(optional )
(required )  
Add

About Steve

Steve Andrews has been working as a developer for more than 8 years. During this time, he has designed and developed applications in such widely varying areas as trust accounting, medical information management, supply chain management, and retail systems. He has firsthand developer experience with a variety of languages, including Java, VB, and .NET. Most recently, he has been immersed in SharePoint. He is currently employed at RDA Corporation in Philadelphia, PA, as a Software Engineer and a team member in the Architectural Guidance evangelism team. Steve is also an MTCS (x2), ICSOO, and .NET fanatic.
Powered by Community Server (Commercial Edition), by Telligent Systems
© Platinum Bay | Some Rights Reserved Creative Commons License

Disclaimer: The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Feel free to challenge me, disagree with me, or tell me I'm completely nuts in the comments section of each blog entry, but I reserve the right to delete any comment for any reason whatsoever (abusive, profane, rude, or annonymous comments) - so keep it polite, please.