2

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.

0

3 Answers 3

3

The official A-Z command-line reference list includes the "where" command, among other things.

According to the list, it applies to Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7, Windows Server 2003 R2, Windows Server 2008 R2, Windows Server 2012, and Windows 8.

1

where has been included in Windows since Windows Server 2003.

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

0

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .