7

This is a direct extension of this question:

How to do something to each file in a directory with a batch script

From the above I leaned how to execute a command for every file in a folder.

How do you execute MULTIPLE commands for each file? I want to first use lame to compress the file, then MOVE the original file to a different directory

This is what I have so far:

FOR /r cutAndPendingCompression %%f IN (*.*) DO lame %%f compressed\%%~nf -m m -b 16 --vbr-new -V 9 --scale 2.5
Community
  • 1
  • 1
Jonah
  • 2,040
  • 7
  • 29
  • 32

1 Answers1

7

This did it

FOR /r cutAndPendingCompression %%f IN (*.*) DO (
lame %%f compressed\%%~nf -m m -b 16 --vbr-new -V 9 --scale 2.5
move %%f cut\%%~nf
)
Jonah
  • 2,040
  • 7
  • 29
  • 32