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
  • 448

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
  • 448
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.