利用VB脚本来设置Windows计划任务

利用VB脚本来设置计划任务

Dim IE
Set IE = CreateObject("InternetExplorer.Application")
ie.navigate("http://www.baidu.com")
ie.visible=0//如果设置为0,IE只在后台启动
Set IE = Nothing

在相应网页中加入一下js代码

//在相应网页中加入以下js,否则IE会一直在后台运行
<script type="text/javascript">
        window.opener = null;
        window.open('', '_self'); //IE7必需的.
        window.close();
    </script>

 

 

posted @ 2013-05-13 10:05  L嗜血幽灵  阅读(496)  评论(0编辑  收藏  举报