in reply to How to make code smaller--saving steps and writing one liners
dir /s/b C:\users\User\Music | perl -pe"s/^C:\\users\\User\\Music\\//" + >filelist.txt [download]
You probably want to add /a-d to avoid listing directory names.