Monday, September 7, 2015

How to Dir multiple directories or file types

q: We need to get a listing of various file types in a folder to a text file.

a: try this command:
dir c:\windows\*.dll c:\windows\*.reg c:\windows *.exe /s /b > windowsfiles.txt

The output should be a clean full file path listing of all those file types .dll, .reg and .exe

No comments:

Post a Comment