Save the list of folders in a text file

If you receive a portable drive and want to see the list of folders, you can output it to a text file.

To save the list of folders in a text file execute the following command in the command window:


dir P: /AD /B >> "C:\folderlist.txt"

where P: is the drive letter of the portable drive

The file will be created in the root directory of the C: drive.

Leave a Reply