Windows Batch: Format current date to filename/foldername friendly format
@echo off
rem Make Directory With Name Date and Time
for /f "tokens=1-4 delims=/- " %%a in ('date /t') do set XDate=%%d-%%c-%%b
echo %XDate%
Where:
%%a name of the day (Monday etc.)
%%b Day
%%c Month
%%d Year
Comments
Post a Comment