在任务调度asp.net脚本 [英] asp.net script in task scheduler

查看:136
本文介绍了在任务调度asp.net脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我小的asp.net脚本什么可以作为网页被执行

I got small asp.net script what could be executed as web page

HTTP://localhost/myscript.aspx

和我需要这个脚本每30秒运行。

and I need this script to be run every 30 seconds.

我正在Windows Server 2003上使用IIS 6.0
我有任务调度程序可用,但是发射
IEXPLORER.EXE HTTP://localhost/myscript.aspx 打开的浏览器,甚至把JavaScript的windows.close()内页,所以在少数分钟,我将有太多的浏览器中打开

I am working on windows server 2003 with IIS 6.0 I got task scheduler available, however launching iexplorer.exe http://localhost/myscript.aspx open browser even putting JavaScript windows.close () inside page, so in a few min I will have too many browsers open

如何运行它类似于Unix的山猫 HTTP://localhost/myscript.aspx >空

how to run it similar to Unix Lynx http://localhost/myscript.aspx > null

推荐答案

安装然后 PowerShell的你可以创建一个运行以下命令的任务:

Install PowerShell then you can create a task that runs the following command:

powershell.exe -c (new-object system.net.webclient).downloadstring('http://localhost/myscript.aspx')

这篇关于在任务调度asp.net脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆