@echo off
@echo Now Creating...
@echo Creating year directory...
set year=%date:~,4%
md %year%
@echo Creating year directory successfully.
cd %year%
@echo Creating month directory...
for /L %%m in (1, 1, 9) do md "0%%m"
for /L %%m in (10, 1, 12) do md "%%m"
@echo Creating month directory successfully.
@echo Creating day directory for every month...
cd 01
for /L %%d in (1, 1, 9) do md "0%%d"
for /L %%d in (10, 1, 31) do md %%d
cd..
cd 02
for /L %%d in (1, 1, 9) do md "0%%d"
for /L %%d in (10, 1, 28) do md %%d
cd..
cd 03
for /L %%d in (1, 1, 9) do md "0%%d"
for /L %%d in (10, 1, 31) do md %%d
cd..
cd 04
for /L %%d in (1, 1, 9) do md "0%%d"
for /L %%d in (10, 1, 30) do md %%d
cd..
cd 05
for /L %%d in (1, 1, 9) do md "0%%d"
for /L %%d in (10, 1, 31) do md %%d
cd..
cd 06
for /L %%d in (1, 1, 9) do md "0%%d"
for /L %%d in (10, 1, 30) do md %%d
cd..
cd 07
for /L %%d in (1, 1, 9) do md "0%%d"
for /L %%d in (10, 1, 31) do md %%d
cd..
cd 08
for /L %%d in (1, 1, 9) do md "0%%d"
for /L %%d in (10, 1, 30) do md %%d
cd..
cd 09
for /L %%d in (1, 1, 9) do md "0%%d"
for /L %%d in (10, 1, 31) do md %%d
cd..
cd 10
for /L %%d in (1, 1, 9) do md "0%%d"
for /L %%d in (10, 1, 30) do md %%d
cd..
cd 11
for /L %%d in (1, 1, 9) do md "0%%d"
for /L %%d in (10, 1, 31) do md %%d
cd..
cd 12
for /L %%d in (1, 1, 9) do md "0%%d"
for /L %%d in (10, 1, 30) do md %%d
cd..
@echo Creating day directory for every month successfully.
cd..
@echo Mission completed.
@echo Press any key to exist...
@pause
|