判断今天的日期是否跟设定的日期相同
@echo off
getinfo /t
set today=%Year%%Mon%%Day%
getinfo /cmp:%today%,20051016
if errorlevel 2 goto big
if errorlevel 1 goto small
if errorlevel 0 goto equ
goto end
:big
echo 已过了设定的日期
goto end
:small
echo 还没有到设定的日期
goto end
:equ
echo 今天就是设定的日期
:end
里面的Getinfo.com在这里下载
http://www.13886.com/soft/
Last edited by zybird on 2006-5-6 at 18:36 ]