test.bat
CMD下执行
>test.bat
此时不应有 (set。
?????????
笔误:将lday写成了ldate了!!!
[ Last edited by xycoordinate on 2007-2-22 at 07:55 PM ]
@echo off
setlocal ENABLEDELAYEDEXPANSION
set syear=2008
set smouth=02
if %smouth% == 02 (
set /a yyyy=syear%%4
if %yyyy% == 0 (set lday=29) else (set lday =28)
)
echo %lday%
CMD下执行
>test.bat
此时不应有 (set。
?????????
笔误:将lday写成了ldate了!!!
[ Last edited by xycoordinate on 2007-2-22 at 07:55 PM ]

