I'm using Windows 7 Home Basic "Service pack 1" on a Samsung rv420 computer.

I'm doing a back up of my files. I have a folder called "music i like" (it's not the default music folder windows 7 has), said folder has other folders, with folders inside, and the "deepest" folders (those without folders inside) have mp3 music files.

I don't want to back up this music files because they are too big, but I'm interested in copying the filename, wich for each song is the title of the song. Because that way, I will have a list with all songs I like, and that will not take much space in disk (it will be a text file not exceeding a couple of kb)

I don't want to do this by hand, there are too many songs.

If possible, I want a more complex back-up: I want some way to know in wich folder the files were. That would ensure I know the artist. I.e: There are many songs called "I love you" but If i know the folder of the song, wich is in many cases the artist's name, I can know the artist and thus identify the song.

My own progress: I tried "Robocopy" command in cmd, but it only copied folder names without any information of the files inside. I need the file-names at least.

  • I used Tree /F and that did the job I was expecting. Now I realized it would be even better if this could be done, but I don't know if I should do another question: mp3 files come with artist name, along some other information. Can I keep that information too? Both answers did the job but I prefer the tree because it's more visually easier to comprehend. I would like to accept both in some way. But I will accept the User1016274 because it is what I wil finally going to use. – Santropedro Aug 24 '15 at 14:32

Two suggestions:
1. Use robocopy sourcedir destination /CREATE /S. This will copy the folder structure and all files but set the filesize of each file to 0.

  1. Use tree /F to get a tree listing of all files. This is a graphical representation of the folder tree, along with all filenames. It's not, though, a backup - if you are interested in a list of files with folder hierarchy, tree might be more convenient.
| improve this answer | |

How do I create a list of files including the subdirectory hierarchy?

Use the following command:

dir /a-d /b /s > myfiles.txt

Further Reading

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.