Create a Text File of Directory Contents
If you’ve ever needed to get a list of files in a specific directory for whatever purpose, maybe you need to verify files during a backup or transfer, you probably hunted for a good freeware application to do the trick. Sure, there are good options out there, but why find a download for something you can just as easily accomplish from the command line?
Running the following command will output a list of the contents of the current directory to your Desktop. Just replace YOU with your Windows username.
dir /b *. > C:\Users\YOU\Desktop\musicfiles.txt
It’s that easy!



