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

link|improve this question
feedback

migrated from stackoverflow.com Oct 20 '10 at 2:07

This question came from our site for professional and enthusiast programmers.

2 Answers

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

dir *.exe *.dll *.sys
link|improve this answer
I have to find all files with those 3 extensions with a pause between screens /p all in one command prompt – Anonymous Oct 20 '10 at 2:06
FWIW, "dir c:\windows\system32\*.dll c:\windows\system32\*.exe c:\windows\system32\*.sys /p" works on Windows 7 – Arnold Spence Oct 20 '10 at 2:55
feedback

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

@echo off

dir c:\windows\system32\*.dll
pause
dir c:\windows\system32\*.exe
pause
dir c:\windows\system32\*.sys
link|improve this answer
feedback

Your Answer

 
or
required, but never shown