set rok=%date:~9,4% set mesic=%date:~6,2% if %mesic% LSS 10 ( set mesic=0%mesic:~1,1% ) set den=%date:~3,2% if %den% LSS 10 ( set den=0%den:~1,1% ) set datum=%den%.%mesic%.%rok% set cas=%time:~,5%
set disk=%~d1 set cesta=%~p1 set soubor=%~n1 set pripona=%~x1