How to traverse a directory tree, running a command each file there?

by Jacob Stewart   Last Updated May 16, 2019 01:01 AM

Using cmd.exe after a cursory look though of help for:

Command: FOR /R \Music %file IN (*.flac *.wav *.aif) DO C:flac.exe -f -8 %file
Response: %file was unexpected at this time.

Command: FOR /R \Music %file% IN (*.flac *.wav *.aif) DO C:flac.exe -f -8 %file%
Response: %file% was unexpected at this time.



Related Questions


Updated November 06, 2017 06:01 AM

Updated May 25, 2017 03:01 AM

Updated December 21, 2018 08:01 AM

Updated April 10, 2017 01:01 AM