zoukankan      html  css  js  c++  java
  • 用计划任务定时执行ASP文件

    方法1.vbscript

    Dim IE
    Set IE = CreateObject("InternetExplorer.Application")
    ie.navigate(
    "http://slist.cnblogs.com/")
    ie.visible
    =1
    Set IE = Nothing


    方法2.Jscript

    var html = "";
        html 
    += "<html><head><title>运行窗口</title></head><body>";
            html 
    += "<font face=verdana></font>";
            html 
    += "</body></html>";

    ie 
    = new ActiveXObject("InternetExplorer.Application");
    ie.left       
    = 50;
    ie.top        
    = 50;
    ie.height     
    = 510;
    ie.width      
    = 470;
    ie.menubar    
    = 0;
    ie.toolbar    
    = 0;
    ie.navigate(
    "http://slist.cnblogs.com/");
    ie.visible
    =1;


    方法3.bat

      start http://slist.cnblogs.com/


    可以使用上面任一方法,然后新建一个计划任务选定时间,选择刚刚创建文件即可。
    第3种方法最便利,但是需要WIN2000及以上环境才支持,即支持start命令的操作系统。

    喜欢请赞赏一下啦^_^
  • 相关阅读:
    几个小地方
    數組鏈表
    目前比較常用的枚舉
    讀書筆記
    lambda的一個小用法
    單鏈表的實現
    fisher线性判别里的广义瑞丽商
    fisher线性判别里的广义瑞丽商
    pattern recognition and machine learning基本思想1:最大似然估计
    中国机器学习邮件列表
  • 原文地址:https://www.cnblogs.com/amadeuslee/p/3744720.html
Copyright © 2011-2022 走看看