- echo on
- if "%time:~0,1%"==" " set hour=0%time:~1,1%
- if "%time:~0,1%"=="1" set hour=%time:~0,2%
- if "%time:~0,1%"=="2" set hour=%time:~0,2%
-
- md D:\%date:~0,4%%date:~5,2%%date:~8,2%%hour%%time:~3,2%%time:~6,5%
- exit
复制代码
回复 yangfengoo
代码仅提示楼主 可将时间格式中, 时 的前导空格替换为 0, 或者 "空"
XP 32 位下, 时 ...
fatcat 发表于 2012-6-6 13:55 |