您的位置:首页 > 其它

How to use "for" in DOS

2013-05-13 16:16 344 查看
echo off

set Count=0
setlocal EnableDelayedExpansion

for /l %%i in (1, 1, 9) do (
set /a Count+=1

set A=C:\qa\Quick-testing-for0.6.1dut-as0.6ref\Listen_Case_0!Count!_output_ea06_ref.wav
set B=C:\qa\Quick-testing-for0.6.1dut-as0.6ref\Listen_Case_0!Count!_output_ea061_dut.wav

echo !B!

bindiff !A! !B! -q > !B!-Bindiff.log
pcmtool -if !A! -if2 !B! -diff -grepable > !B!-pcm.log
)

set Count=0
for /l %%i in (10, 1, 20) do (
set Count=%%i

set A=C:\qa\Quick-testing-for0.6.1dut-as0.6ref\Listen_Case_!Count!_output_ea06_ref.wav
set B=C:\qa\Quick-testing-for0.6.1dut-as0.6ref\Listen_Case_!Count!_output_ea061_dut.wav

echo !B!

bindiff !A! !B! -q > !B!-Bindiff.log
pcmtool -if !A! -if2 !B! -diff -grepable > !B!-pcm.log

)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: