十二生肖- @echo off
- cd /d "%~dp0"
- set "dp=%~dp0"
- set "dp=%dp:\=\\%"
- set n=1
-
- for /f "delims=" %%i in ('dir /b /s /a-d ^|find /v "%~f0" ^|findstr /rvibc:\\"%dp%[1-2][0-9][0-9][0-9]\\\\"') do (
- for /f "tokens=1-2 delims=/" %%a in ("%%~ti") do (
- setlocal
- if "%%b" leq "01" (
- call :1 "%%a年\1-子鼠" "%%i"
- )
- if "%%b" leq "02" (
- call :1 "%%a年\2-丑牛" "%%i"
- )
- if "%%b" leq "03" (
- call :1 "%%a年\3-寅虎" "%%i"
- )
- if "%%b" leq "04" (
- call :1 "%%a年\4-卯兔" "%%i"
- )
- if "%%b" leq "05" (
- call :1 "%%a年\5-辰龙" "%%i"
- )
- if "%%b" leq "06" (
- call :1 "%%a年\6-巳蛇" "%%i"
- )
- if "%%b" leq "07" (
- call :1 "%%a年\7-午马" "%%i"
- )
- if "%%b" leq "08" (
- call :1 "%%a年\8-未羊" "%%i"
- )
- if "%%b" leq "09" (
- call :1 "%%a年\9-申猴" "%%i"
- )
- if "%%b" leq "10" (
- call :1 "%%a年\10-酉鸡" "%%i"
- )
- if "%%b" leq "11" (
- call :1 "%%a年\11-戌狗" "%%i"
- )
- if "%%b" leq "12" (
- call :1 "%%a年\12-亥猪" "%%i"
- )
- endlocal
- )
- )
-
- for /f "delims=" %%i in ('dir /b /s /ad ^|sort /r') do (
- rd "%%i" 2>nul
- )
-
- :1
- md "%~1" 2>nul
- if not exist "%~1\%~n2%m%%~x2" (
- move "%~2" "%~1\%~n2%m%%~x2"
- exit /b
- )
- set /a n+=1
- set m=_%n%
- goto :1
-
- exit
复制代码 十二星座- @echo off
- cd /d "%~dp0"
- set "dp=%~dp0"
- set "dp=%dp:\=\\%"
- set n=1
-
- for /f "delims=" %%i in ('dir /b /s /a-d ^|find /v "%~f0" ^|findstr /rvibc:\\"%dp%[1-2][0-9][0-9][0-9]\\\\"') do (
- for /f "tokens=1-2 delims=/" %%a in ("%%~ti") do (
- setlocal
- if "%%b" leq "01" (
- call :1 "%%a 年\1-白羊座" "%%i"
- )
- if "%%b" leq "02" (
- call :1 "%%a 年\2-金牛座" "%%i"
- )
- if "%%b" leq "03" (
- call :1 "%%a 年\3-双子座" "%%i"
- )
- if "%%b" leq "04" (
- call :1 "%%a 年\4-巨蟹座" "%%i"
- )
- if "%%b" leq "05" (
- call :1 "%%a 年\5-狮子座" "%%i"
- )
- if "%%b" leq "06" (
- call :1 "%%a 年\6-处女座" "%%i"
- )
- if "%%b" leq "07" (
- call :1 "%%a 年\7-天秤座" "%%i"
- )
- if "%%b" leq "08" (
- call :1 "%%a 年\8-天蝎座" "%%i"
- )
- if "%%b" leq "09" (
- call :1 "%%a 年\9-射手座" "%%i"
- )
- if "%%b" leq "10" (
- call :1 "%%a 年\10-摩羯座" "%%i"
- )
- if "%%b" leq "11" (
- call :1 "%%a 年\11-水瓶座" "%%i"
- )
- if "%%b" leq "12" (
- call :1 "%%a 年\12-双鱼座" "%%i"
- )
- endlocal
- )
- )
-
- for /f "delims=" %%i in ('dir /b /s /ad ^|sort /r') do (
- rd "%%i" 2>nul
- )
-
- :1
- md "%~1" 2>nul
- if not exist "%~1\%~n2%m%%~x2" (
- move "%~2" "%~1\%~n2%m%%~x2"
- exit /b
- )
- set /a n+=1
- set m=_%n%
- goto :1
-
- exit
复制代码 社会主义核心价值观【有个字论坛不让写请自己改写】- @echo off
- cd /d "%~dp0"
- set "dp=%~dp0"
- set "dp=%dp:\=\\%"
- set n=1
-
- for /f "delims=" %%i in ('dir /b /s /a-d ^|find /v "%~f0" ^|findstr /rvibc:\\"%dp%[1-2][0-9][0-9][0-9]\\\\"') do (
- for /f "tokens=1-2 delims=/" %%a in ("%%~ti") do (
- setlocal
- if "%%b" leq "01" (
- call :1 "%%a年\1-富强" "%%i"
- )
- if "%%b" leq "02" (
- call :1 "%%a年\2-**" "%%i"
- )
- if "%%b" leq "03" (
- call :1 "%%a年\3-文明" "%%i"
- )
- if "%%b" leq "04" (
- call :1 "%%a年\4-和谐" "%%i"
- )
- if "%%b" leq "05" (
- call :1 "%%a年\5-自由" "%%i"
- )
- if "%%b" leq "06" (
- call :1 "%%a年\6-平等" "%%i"
- )
- if "%%b" leq "07" (
- call :1 "%%a年\7-公正" "%%i"
- )
- if "%%b" leq "08" (
- call :1 "%%a年\8-法治" "%%i"
- )
- if "%%b" leq "09" (
- call :1 "%%a年\9-爱国" "%%i"
- )
- if "%%b" leq "10" (
- call :1 "%%a年\10-敬业" "%%i"
- )
- if "%%b" leq "11" (
- call :1 "%%a年\11-诚信" "%%i"
- )
- if "%%b" leq "12" (
- call :1 "%%a年\12-友善" "%%i"
- )
- endlocal
- )
- )
-
- for /f "delims=" %%i in ('dir /b /s /ad ^|sort /r') do (
- rd "%%i" 2>nul
- )
-
- :1
- md "%~1" 2>nul
- if not exist "%~1\%~n2%m%%~x2" (
- move "%~2" "%~1\%~n2%m%%~x2"
- exit /b
- )
- set /a n+=1
- set m=_%n%
- goto :1
-
- exit
复制代码
|