I want to recursively list the absolute path to all files that end with mp3 from a given directory which should be given as relative directory.
mp3
I would then like to strip also the directory from the file and I have read that variables which are in a for-scope must be enclosed in !s. Is that right?
for
!
My current code looks like this:
for /r %%x in (*.mp3) do ( set di=%%x echo directory !di! C:la.exe %%x !di! )
Use the command DIR:
DIR
dir /s/b *.mp3
The above command will search the current path and all of its children. To get more information on how to use this command, open a command window and type DIR /?.
DIR /?
2.1m questions
2.1m answers
60 comments
57.0k users