Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

At the moment when trying to run tf command and/or any other run-able command, I need to open Visual Studio Command to get it executable. I like to use the normal console and/or the alternative console but failed to call tf.

So, I need to print the full path of tf and any runable-command but don't know how to do so.

Please help.

share|improve this question
    
The poster is looking for the equivalent of the "which" command in some Unix shells, e.g. "which grep" prints the full path of the grep command that the shell will execute in response to you typing "grep" without a path. I'm looking for this too. –  user73639 Mar 27 '11 at 6:45

2 Answers 2

up vote 10 down vote accepted

I'm not really sure what you are asking, but judging by your comments, you may be looking for where.

where foo

where foo | clip

The second example will place the whole path into the clipboard.

If I remember correctly, where.exe needs to be added to XP/2003 from the Windows 2003 Resource Kit or XP Support Tools.

share|improve this answer
2  
It comes preinstalled with Windows 7. There is also a script for older Windows versions. –  grawity Mar 27 '11 at 14:17
    
There is also a where.exe in UnxUtils, along with lot of useful Unix commands. –  PhiLho Mar 29 '11 at 9:25
    
@PhiLho: The original Unix version is which. –  paradroid Mar 29 '11 at 12:35
    
ouch, where.exe lives in system32, my bad... Funnily, I just tried them to find java.exe, where points to the JDK path (that's the one Windows finds) while which points to system32, earlier in the path. But it doesn't exist there, there might be a hardlink there, or something similar. Well, back to the topic, which, roughly similar to where, can be found in a free package. –  PhiLho Apr 9 '11 at 7:22

According to Microsoft, you should find tf in <drive>:\Program Files\Microsoft Visual Studio x\Common7\IDE.

(I've substituted x in the version because I don't know which version you're using.)


EDIT:

According to the Walkthrough: Working with Team Foundation Source Control from Command Line, (and assuming VS 2005), you can access the tools for TF at the following path:

<drive>:\Program Files\Microsoft Visual Studio 8\Common7\Tools

share|improve this answer
    
@Potter: Thank you! How about any other run-able commands that were added in the system environment variable PATH? Should it be a quick command to print their full path? –  Nam G VU Feb 21 '11 at 7:59
    
Are you talking about Team Foundation executables specifically? –  user3463 Feb 21 '11 at 8:01
    
@Potter: No. I'm talking about a general executable command. –  Nam G VU Feb 21 '11 at 8:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.