in

Platinum Bay

Peace, Love, and...

This Blog

Syndication


.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

November 6, 2008 8:30 AM

Hi Steve,

  Its really an useful articale that solved one of my issue.  Thanks a lot.

Murugan Radhakrishnan
 

Leave a Comment

(required )  
(optional )
(required )  
Add

About Steve

Steve Andrews is an independent consultant, INETA speaker, and Microsoft MVP for Visual Studio ALM. He has been working in technology for over ten years focusing on custom application development and Application Lifecycle Management. Steve is also Microsoft and IBM certified and a community fanatic having led sessions at nearly 100 events across North America. When he's not developing software solutions or engaging with the community about software technology, Steve is a closet singer and songwriter and plays the guitar and keys. Occasionally, Steve even gets to sleep. Occasionally.
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.