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 already has an answer here:

I'm trying to find out where programs are installed, but Windows can't find where!

Trace:

C:\Documents and Settings\apenneba>where java
'where' is not recognized as an internal or external command,
operable program or batch file.

C:\Documents and Settings\apenneba>echo %path%
c:\Python27;C:\Python33\;C:\Program Files\Git\bin;C:\Program Files\Haskell\bin;C:\Program Files\Haskell Platform\2012.4.0.0\lib\extralibs\bin;C:\Program Files\Haskell Platform\2012.4.0.0\bin;C:\Ruby193\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\OpenSSH\bin;C:\Program Files\Haskell Platform\2012.4.0.0\mingw\bin;C:\Program Files\Java\jdk1.7.0_11\bin;C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;C:\Program Files\Mozart\bin;C:\Program Files\nodejs\;C:\vagrant\vagrant\bin;C:\Program Files\GNU\Emacs\bin;C:\Documents and Settings\apenneba\Application Data\cabal\bin;C:\Program Files\GNU\Make\bin;C:\Chocolatey\bin;c:\Documents and Settings\apenneba\Desktop\src\specs;C:\jscoverage;C:\Program Files\Redis;C:\Program Files\MySQL\MySQL Server 5.6\bin;C:\Program Files\Caphyon\Advanced Installer 10.0\bin\x86;C:\Leiningen;C:\Program Files\GNU\nano\bin;C:\Documents and Settings\apenneba\Desktop\src\leiningen\bin;C:\Program Files\erl5.10.1\bin;C:\Program Files\bozho\Console2\;C:\Documents and Settings\apenneba\Application Data\npm

System:

$ specs os
Specs:

specs 0.4
https://github.com/mcandre/specs#readme

systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name:                   Microsoft Windows XP Professional
OS Version:                5.1.2600 Service Pack 3 Build 2600
share|improve this question

marked as duplicate by Simon, Brad Patton, Scott Chamberlain, 8088, KronoS Apr 25 '13 at 20:40

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
+1, b/c if I could talk to my computer like that it would be awesome. –  BigHomie Apr 24 '13 at 19:12
3  
Is where actually in system32? meaning, did it not get deleted by accident? Also, is this powershell or cmd? –  BigHomie Apr 24 '13 at 19:14
    
@MDMoore313 Oh wow, looks like my where.exe is missing. Any idea how I can get a new one? –  mcandre Apr 24 '13 at 20:18
    
possible duplicate –  Endoro Apr 25 '13 at 5:34
    
@Endoro Nope, dead download links, and they don't even offer a download for 32 bit XP. –  mcandre Apr 25 '13 at 13:09

2 Answers 2

up vote 2 down vote accepted

There's a really simple reason why Windows can't locate where.exe! That's because this program was initially part of the Windows 2000 Resource Kit (a separate download), and only became part of the default OS distribution with Windows Server 2003 onwards. You're probably so used to seeing and using it on newer Windows versions that you forgot it wasn't even included with XP! :)

If it was part of the OS of course you could have simply extracted it from the installation media, but in this case if you want a copy just see this answer.

share|improve this answer
1  
Ah, thank you. Yeah, no good comes from using sane environments and carrying the habits back to Windows XP. –  mcandre Apr 25 '13 at 13:11

If your where command won't work, and System32 is actually in the PATH variable, where.exe was probably stolen by the exe gnomes, or otherwise gone missing. Could have been a botched update, or something else (who really knows, right?). Best course of action is to copy it from another machine of same OS and architecture (Win 7 x86 SP1, etc), that usually does it and keeps one from having to rebuild their entire machine.

share|improve this answer
1  
Actually we do know. :) See my answer. –  Karan Apr 25 '13 at 1:34
    
@Karan good catch! –  BigHomie Apr 25 '13 at 2:12

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