特定时间执行某程序
2004-10-02 04:44
309 查看
方法一:用windows的计划任务
比如想执行asp网页的地址为http://localhost/nncc2new/refresh.asp
'保存如下代码为do.vbs,在计划任务里执行do.vbs
Dim IE
Set IE = CreateObject("InternetExplorer.Application")
'运行你的asp文件
ie.navigate("http://localhost/nncc2new/refresh.asp")
ie.visible=1 '如果想使运行的网页不可见,就设为0
'Clean up...
Set IE = Nothing
方法二:在客户端代码用settimout模拟一个时钟
<script language="javascript">
<!--
function window.onload()
{
show();
}
function show()
{
t1.value=new Date();
if (t1.value=某时刻)
window.open('http://localhost/nncc2new/refresh.asp');
window.setTimeout('show()',1000);
}
</script>
<input name=t1 size=20> '可隐藏
比如想执行asp网页的地址为http://localhost/nncc2new/refresh.asp
'保存如下代码为do.vbs,在计划任务里执行do.vbs
Dim IE
Set IE = CreateObject("InternetExplorer.Application")
'运行你的asp文件
ie.navigate("http://localhost/nncc2new/refresh.asp")
ie.visible=1 '如果想使运行的网页不可见,就设为0
'Clean up...
Set IE = Nothing
方法二:在客户端代码用settimout模拟一个时钟
<script language="javascript">
<!--
function window.onload()
{
show();
}
function show()
{
t1.value=new Date();
if (t1.value=某时刻)
window.open('http://localhost/nncc2new/refresh.asp');
window.setTimeout('show()',1000);
}
</script>
<input name=t1 size=20> '可隐藏
相关文章推荐
- js定时器怎么写?就是在特定时间执行某段程序
- js定时器 特定时间执行某段程序的例子
- js定时器怎么写?就是在特定时间执行某段程序
- Java获取程序执行时间
- 前端PHP入门-023-重点日期函数之程序执行时间检测
- js获取程序执行的时间长短 控制台之console。
- time测试程序执行时间
- PHP程序执行中的时间分析(定性)
- Python小任务 - 如何编写指定时间执行的Python小程序
- PHP程序执行时间延长
- 用C#计算程序执行的时间间隔
- 一个不错的小软件和一个不错的作者的主页:以管理员权限特定时间运行程序
- 解决:shell脚本中,无法执行time命令,以统计某个程序执行时间
- MATLAB中统计程序执行时间
- 如何测试程序的执行时间
- 计算php程序执行时间的程序
- PHP获取程序执行时间
- 设置PHP程序的最长执行时间
- B/S架构开发hive客户端程序:后台执行时间长,页面过期问题
- php获取程序执行的时间