samedi 6 juin 2015

What's wrong with this Batch file?

I am trying to write a simple Batch file.

"encoded_%%A_%%B_%int%%conv%%%E" is a required output file name. Can someone tell me, why "int" and "conv" never appear in the name? It treats them like they don't exist... why?

FOR %%A IN (4k, 8k) DO FOR %%B IN (7, 8) DO FOR %%C IN (1/32, 1/4) DO FOR %%D IN (2/3, 5/6) DO FOR %%E IN (4, 64) DO (
if %%C==1/32 (set int=132) else (set int=14)
if %%D==2/3 (set conv=23) else (set conv=56)
dvbtenco -i zad1.m2v -o encoded_%%A_%%B_%int%_%conv%_%%E -m %%A -M %%E -p %%D -D %%C -b %%B -d t
timeout /t 10

)

Aucun commentaire:

Enregistrer un commentaire