Vale, no era tan dificil...
Pues muchas gracias.
Código [Seleccionar]
@Echo OFF
( for /D %%# in ("*") Do (
Set "DateTime=%%~t#"
Call Set "Y=%%DateTime:~6,4%%"
Call Set "M=%%DateTime:~3,2%%"
Call Set "D=%%DateTime:~0,2%%"
Call Set "H=%%DateTime:~11,2%%"
Call Set "MIN=%%DateTime:~14,2%%"
Call Echo %%Y%%%%M%%%%D%%%%H%%%%MIN%% %%~f#
))>"%TEMP%\dirs.tmp"
For /F "tokens=1,*" %%A in ('Type "%TEMP%\dirs.tmp" ^| SORT') Do (
Echo %%B
REM xcopy "%%B" ...
)
del "%TEMP%\dirs.tmp"
Pues muchas gracias.