Share this question

Welcome to Teachnovice Q&A, where you can ask questions and receive answers from other members of the community.

This is a collaboratively edited question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Finding multiple file extensions in command prompt window

0 like 0 dislike

I am trying to use multiple parameters to find 3 different extensions in my windows/system32 in one command: .exe, .dll and .sys

This is giving me what I want, but I can't figure out how to get all 3 extensions in a single command:

dir c:\windows\system32\*.dll /p
asked Nov 22, 2012 by anonymous  

2 Answers

0 like 0 dislike
Best answer

make this a batch file (.bat) and run it from the command prompt

@echo off
cd C:\windows\system32
dir *.dll
dir *.exe
dir *.sys
answered Nov 22, 2012 by anonymous  
0 like 0 dislike

If you mean listing files that have one of three extensions, you should start with:

dir *.exe *.dll *.sys
answered Nov 22, 2012 by anonymous  
I have to find all files with those 3 extensions with a pause between screens /p all in one command prompt
FWIW, "dir c:\windows\system32\*.dll c:\windows\system32\*.exe c:\windows\system32\*.sys /p" works on Windows 7