I'd like to search for all .htm files under a folder. However using .htm will also includes .HTML files. How can I exclude them?

link|improve this question
See Directory search in Windows Command Prompt shows incorrect output for explanation on why this is happening. – grawity Mar 9 '11 at 9:44
feedback

2 Answers

up vote 2 down vote accepted

Try searching for *.htm instead of .htm and you'll find it works and just shows .htm

link|improve this answer
2  
most pros would just have done *.xxx anyway. I suppose you stumbled on an oddity with a search of .xxx (your search without the star)! – barlop Mar 9 '11 at 7:23
feedback

Open a command prompt window (Start > Run > cmd.exe) and navigate to the folder you want to do the search (e.g. cd C:\MyFolder). Then type the following command and hit Enter:

dir /s /p *.htm
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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