5

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.

Zhongshu
  • 408
  • 1
  • 6
  • 13
  • 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 Answers2

5

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.

Zhongshu
  • 408
  • 1
  • 6
  • 13
1

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.

Gilles 'SO- stop being evil'
  • 69,786
  • 21
  • 137
  • 178