本帖最后由 pcl_test 于 2015-1-26 22:20 编辑
回复 3# eech
每运行一次创建一个以当前日期命名的文件夹- @echo off
- set dt=%date:~,10%
- set dt=%dt:-=%
- set dt=%dt:/=%
- if not exist "%dt%" (md "%dt%"
- ) else (
- for /l %%i in (2 1 100) do (
- if not exist "%dt% (%%i)" md "%dt% (%%i)"&&exit
- )
- )
复制代码 每运行一次创建100个以当前日期命名的文件夹- @echo off
- set dt=%date:~,10%
- set dt=%dt:-=%
- set dt=%dt:/=%
- if not exist "%dt%" md "%dt%"
- for /l %%i in (2 1 100) do (
- if not exist "%dt% (%%i)" md "%dt% (%%i)"
- )
复制代码
|