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.

My find.exe in Windows 7 can not find anything.

C:\topo\server\bin>echo "hello" | find "h"

C:\topo\server\bin>

I copied a find.exe from Windows XP, doesn't work too.

share|improve this question
    
Interesting. I wish I could test this myself. Vista's search was broken for a while after its initial launch - maybe something similar happened with Win7? –  boot13 Aug 17 '10 at 10:50

2 Answers 2

Remember that Windows searches the current directory first. Is there a find program in C:\topo\server\bin?

Use the where command to find out which find command you're invoking.

If you have Cygwin or other unix/posix utility suite installed, remember that it contains a completely different find command.

share|improve this answer
    
I am sure the find.exe is in c:\windows\system32 –  Zhongshu Aug 19 '10 at 4:44
up vote 0 down vote accepted

Ok, I find the answer, because I set the code page of the cmd.exe to 65001(UTF-8), after I change back the code page , the find works ok.

So, It's another question, why find not work after change code page. I will ask it in another question.

share|improve this answer

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.