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
)
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
)
相关文章推荐
- How to use "for/" batch command in Dos extention
- How to Use the BASH "for" Loop in Shell Scripts
- how to fix "Cannot find a valid baseurl for repo: poptop-stable/7" in centos 7 *64 when use "yum -y
- How to add a new "CustomAction" in ECB for a specific list
- How to use the ZooKeeper driver for ServiceGroup in OpenStack Nova
- How to use udev for Oracle ASM in Oracle Linux 6
- 《How to Use the TimeDistributed Layer for Long Short-Term Memory Networks in Python》学习笔记
- How to save data in ASCII format in ADS for use in MATLAB
- How to format date for display or to use in a shell script
- How to use jquery or ajax to update razor partial view in c#/asp.net for a MVC project
- The best manual of how to use "The easiest Xdebug" addon for Firefox
- How to use udev for Oracle ASM in Oracle Linux 5
- how to deal with "no such file error or diretory" error for a new programmer in QT creator
- How to use ASMCA in silent mode to configure ASM for a stand-alone server [ID 1068788.1]
- How to Use the TimeDistributed Layer for Long Short-Term Memory Networks in Python 译文
- How to let "test2.c" use the variable in "test1.c"
- Database Performance: How to reduce "library cache: mutex X" waits for scalability in the Oracle dat
- How to use "man" effectively in the development of Linux
- 如何在QT for S60 中使用pthread库(Carbide.c++) (How to use pthread in QT4.6 for S60)
- how to use the mathmatical constant "e" in conjunction with a vector