问题描述
我小的asp.net脚本什么可以作为网页被执行
I got small asp.net script what could be executed as web page
和我需要这个脚本每30秒运行。
and I need this script to be run every 30 seconds.
我正在Windows Server 2003上使用IIS 6.0
我有任务调度程序可用,但是发射
IEXPLORER.EXE 打开的浏览器,甚至把JavaScript的windows.close()内页,所以在少数分钟,我将有太多的浏览器中打开
I am working on windows server 2003 with IIS 6.0I got task scheduler available, however launchingiexplorer.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的山猫>空
how to run it similar to Unix Lynx http://localhost/myscript.aspx > null
推荐答案
安装然后你可以创建一个运行以下命令的任务:
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脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!