Kompakter:
Code:
dir c:\ d:\ |find "Bytes frei" >test.txt
for /f "tokens=3" %%i in ('type test.txt') do echo %%i >>fertig.txt <-- mit Punkt
for /f "tokens=1-6 delims=." %%i in ('type fertig.txt') do echo %%i%%j%%k%%l%%m%%n >>fertig2.txt <-- ohne Punkt