Chinaunix首页 | 论坛 | 博客
  • 博客访问: 30465450
  • 博文数量: 708
  • 博客积分: 12163
  • 博客等级: 上将
  • 技术积分: 8240
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-04 20:59
文章分类

全部博文(708)

分类:

2011-05-10 10:52:49

@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


阅读(1717) | 评论(0) | 转发(0) |
0

上一篇:tomcat + ssi

下一篇:English Email

给主人留下些什么吧!~~