@echo off set str1=ABCDEFGHIJKLMNOPQRSTUVWXYZ\: set str2=abcdefghijklmnopqrstuvwxyz/ set str=%~dp0 for /l %%i in (0,1,27) do ( ...