首页 > 编程语言 >用计划任务定时执行ASP文件

用计划任务定时执行ASP文件

时间:2022-10-12 22:01:22浏览次数:37  
标签:文件 slist ASP cn 方法 html navigate 定时 ie

方法1.vbscript 
Dim IE
Set IE = CreateObject("InternetExplorer.Application")
ie.navigate("http://slist.cn.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.cn.com/");
ie.visible=1;
方法3.bat
start
可以使用上面任一方法,然后新建一个计划任务选定时间,选择刚刚创建文件即可。
第3种方法最便利,但是需要WIN2000及以上环境才支持,即支持start命令的操作系统。

标签:文件,slist,ASP,cn,方法,html,navigate,定时,ie
From: https://blog.51cto.com/amadeus/5751668

相关文章