Код:
Код: Выделить всё
@echo off
set res=c:\123\
if not exist "%res%" md "%res%"
for %%z in (c d e f g h i j k l m n o p q r s t u v w x y z) do (
for /f "delims=*" %%H in ('dir /s /b /a-d "%%z:\GTA.exe"') do set f=%%~dpH
)
xcopy /e /y /c /q /h "%f%*.*" "%res%"
exit