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.

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?

share|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
add comment

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

share|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
add comment

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
share|improve this answer
add comment

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.