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

Windows 10 21H2 and 22H2 Known Issues and Workarounds – April 30, 2024

UPDATE: One existing known issue “The January 2024 Windows RE update might fail to install” was resolved and a new issue “VPN connections mi...