Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .