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.

This question came up in the context of answering a programming question on Stack Overflow.

where is a handy command to locate a file on the path, roughly equivalent to the Unix which. My Microsoft Windows installation includes the where command, but it is Windows 7 with many developer tools installed. There's some information on Stack Overflow and on Super User about which version/configurations of Windows include this command. Does anyone know for sure? Can you find a reference? I wasn't able to dig this out of the microsoft.com documentation.

share|improve this question
add comment

migrated from stackoverflow.com Apr 28 '11 at 22:35

This question came from our site for professional and enthusiast programmers.

3 Answers

up vote 2 down vote accepted

The official A-Z command-line reference list includes the "where" command, among other things. According to the list, it applies to Windows 7, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, and Windows Vista.

share|improve this answer
add comment

where has been included in Windows since Windows Server 2003.

Prior to that you could obtain it from the Windows Resource Kits.

share|improve this answer
add comment

There is not the equivalent of "which" in any version of Windows.

There are third-party tools that can add the function, however.

Edit: I was wrong. This is not true.

share|improve this answer
add comment

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.