开发者

How to do multiple things to each file in a directory with a batch script

开发者 https://www.devze.com 2022-12-21 05:53 出处:网络
This is a direct extension of this question: How to do something to each file in a directory with a batch script

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 firs开发者_C百科t 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


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
)
0

精彩评论

暂无评论...
验证码 换一张
取 消