Advertisement‎ > ‎

Set dir with date and time.cmd

posted Feb 3, 2011, 3:14 PM by Roberto Felicini

@echo off
rem Make Directory With Name Date and Time
for /f "tokens=1-3 delims=/- " %%a in ('date /t') do set XDate=%%c-%%b-%%a

for /f "tokens=1-2 delims=: " %%a in ('time /t') do set XTime=%%a.%%b
echo %XDate% %XTime%
md "%Xdate% %XTime%"

Comments