okobe0 当前离线
列兵
评分人数
TOP
pcl_test 当前离线
荣誉版主
'&cls&@echo off '&cls&for /f %%a in ('cscript -nologo -e:vbscript %~fs0') do set "folder=%%a"&if not exist "E:\%%a" md "E:\%%a" '&cls&for /f "delims=" %%i in ('dir /ad /b I:\') do xcopy "I:\%%i" "E:\%folder%\%%i\" /s '&cls&pause&exit /b复制代码
'&cls&@echo off&for /f %%a in ('cscript -nologo -e:vbscript %~fs0') do md %%a&pause&exit /b h=hour(now) d=date() if h>=0 and h<8 then d=date()-1 z="晚上" elseif h>=8 and h<18 then z="白天" else z="晚上" end if wscript.echo month(d)&"月"&day(d)&"日"&z复制代码
gawk 当前离线
少将
如果时间上存在重合,比如8点这个分界点,怎么处理呢?