1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
| @echo off
echo Listage des noms de fichier dans resultat.txt
dir /b .\hex\*.* > resultat.txt
for /f "delims=" %%a in (resultat.txt) do call :generer %%a
:generer
rem affiche le nom et le type du fichier en cours
set fichier=%1
echo NOM DU FICHIER: %fichier%
set type=%fichier:~5,3%
echo FICHIER DE TYPE: %type%
rem tri sur le type de fichier
if %type% == 27F goto type27F
if %type% == 21F goto type2xF
if %type% == 22F goto type2xF
if %type% == 23F goto type2xF
if %type% == 24F goto type2xF
if %type% == 25F goto type2xF
if %type% == 26F goto type2xF
goto end
rem conversion des fichiers de type 27F
:type27F
echo TYPE27F
XdrConverter.exe -x xdrBaseTypeIFSV2_F1.xdr .\hex\%fichier% .\xml\%fichier%.xml
goto end
rem conversion des fichiers de type 2XF
:type2xF
echo TYPE2XF
XdrConverter.exe -x xdrBaseTypeIFSV2_C.xdr .\hex\%fichier% .\xml\%fichier%.xml
goto end
:end
echo FIN |
Partager