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 11 Insider Preview Build 26220.7670 Released to Beta Channel

UPDATE: Windows 11 Insider Preview build 26220.7670 (KB5074169) released to Beta channel. Windows Insiders on beta Channel will now receive ...