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 |
@echo off setlocal enabledelayedexpansion :lee-unico set c=0 for /f "tokens=*" %%a in (unico.txt) do ( set /a c+=1 call set unico!c!=%%a ) set i-unico=!c! :lee-up set c=0 for /f "tokens=*" %%a in (up.txt) do ( set /a c+=1 call set up!c!=%%a ) set i-up=!c! :lee-down set c=0 for /f "tokens=*" %%a in (down.txt) do ( set /a c+=1 call set down!c!=%%a ) set i-down=!c! echo todos los Archivos Leidos unico - up - down pause for /l %%n in (1,1,!c!) do (echo !unico%%n!) echo "Indice Unico=%i-unico%" pause for /l %%n in (1,1,!c!) do (echo !up%%n!) echo "Indice up=%i-up%" pause for /l %%n in (1,1,!c!) do (echo !down%%n!) echo "Indice Down=%i-down%" pause endlocal exit |