Wednesday, 18 November 2009

create folder using the date today in windows command prompt

@echo on
echo %date%
set dst=%date:~6,4%%date:~0,2%%date:~3,2%
echo %dst%
if exist %dst% goto endall
if not exist %dst% goto creat_dst
:creat_dst
mkdir %dst%
:endall

No comments:

Labels

Search This Blog