I'm not clear about how you're going to
use your list, but you can do anything like
that easily with script. It's a little more
work than command line but also less tedious
and primitive.
The following will create a list in any folder.
Just paste the text in Notepad, save as lister.vbs,
and drop a folder onto it. It will write a list of all
MP3 files to a file named list.txt inside the folder.
The list will write the full file paths.
You could also make it recursive, select different
file extensions, etc., if you want to delve into editing
the script.
---------------- script starts below here ---------
Dim FSO, Arg, oFol, oFils, oFil, TS, sList
On Error Resume Next
Arg = WScript.Arguments(0)
Set FSO = CreateObject("Scripting.FileSystemObject")
If FSO.FolderExists(Arg) = False Then
Set FSO = Nothing
WScript.Quit
End If
Set oFol = FSO.GetFolder(Arg)
Set oFils = oFol.Files
For Each oFil in oFils
If UCase(Right(oFil.Name, 3)) = "MP3" Then
sList = sList & oFil.Path & vbCrLf
End If
Next
Set oFils = Nothing
Set oFol = Nothing
Set TS = FSO.CreateTextFile(Arg & "\list.txt", True)
TS.Write sList
TS.Close
Set TS = Nothing
Set FSO = Nothing
MsgBox "List written as " & Arg & "\list.txt"
---------- script ends above here -----------------