@echo off setlocal %1 %0 :: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z set A=%5&set B=%6&set C=%8&set D=%3 for %%? in (1 2 3 4 5 6 7 8 9) do shift set A=%C%%7%A%&set C=%D%%4%B%&set D=%7 for %%? in (1 2 3 4 5 6 7 8 9) do shift echo %A% %C%%2%2 %8%D%%4! Karoly