In a folder i want all files except more than one file extension like pdf and html file.
I have already got for single file extension which is

NOT *.pdf  

But In my case I want to exclude two file extension which is html and pdf. What is the way to exclude more than one file extension in windows 7 or Windows *?


1 Answer 1


You can chain NOT with AND to create multiple conditions.


NOT *.pdf AND NOT *.html

This should give you the results you desire.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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