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

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
温馨提示:答案为网友推荐,仅供参考

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网