for /f "tokens=1,*" %%i in ('echo %date%') do ( set tag=%%i set datum=%%j) if %tag%==Mi set datum=Mittwoch %datum% echo %datum%