bat里判断数字大小

2024-11-22 12:15:47
推荐回答(1个)
回答1:

set mm=%date:~5,2%
set dd=%date:~8,2%
if %mm% leq 12 (
if %dd% gtr 20 (
echo success
)
)