Save A List of Files to a Text File by Extension



dir *.ext /s /b > files.txt

This command line will create a file called files.txt. When you open this file, there will be a complete list of all the files in that directory and all subdirectories with the .ext extension. You can then open up this text file in any text editor and work this the information.By changing the ext part, you can select different files. For example, if you wanted to list all of the PDF documents, you would type:

dir *.pdf /s /b > files.txt

--  Wasim Akhtar

No comments:

Post a Comment

If you have any question please let me know

[Software Update] Mozilla Firefox 125.0.1 Stable Released, Here is What’s New and Fixed

UPDATE: Release of Mozilla Firefox 125.0.1 stable version to public. Good news for Mozilla Firefox users! Mozilla has released Firefox 125.0...