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
if date = cdate("2009-05-30") then
msgbox "时间到"
else
wscript.quit
end if
加到自启动或开机脚本中。每次运行先判断系统日期。如果符合就运行
if date = cdate("2009-05-30") then msgbox "时间到" else wscript.quit
温馨提示:答案为网友推荐,仅供参考