@echo off
SET Month=%Date:~4,2%
SET Day=%Date:~7,2%
SET Year=%Date:~-2%
Echo The file is %Month%%Day%%Year%%.txt
For /f “tokens=*” %%i in (‘dir /a:-d/b/0:d’) do set NEWEST=%%i
Echo The newest file is %NEWEST%