怎么让这个脚本到日期就自动运行?不希望使用计划任务

来源:百度知道 编辑:UC知道 时间:2024/05/04 08:06:32
Set objShell = CreateObject("Wscript.Shell")

objshell.Run("cmd /c RD c:\aa /s /q")

Wscript.Echo "test!"
为什么我这样写不行?
if date = cdate("2009-05-30")
then
msgbox "时间到"
else wscript.quit

if 语句一行的话要按照我的格式。分行写要这样

if date = cdate("2009-05-30") then
msgbox "时间到"
else
wscript.quit
end if

加到自启动或开机脚本中。每次运行先判断系统日期。如果符合就运行

if date = cdate("2009-05-30") then msgbox "时间到" else wscript.quit