如何使用Asp.Net在Windows计划任务中添加任务

问题描述:


如何使用Asp.Net在Windows计划任务中添加任务.
谢谢
Sreenath

Hi,
How can I add a Task in Windows Scheduled Tasks using Asp.Net.
Thanks
Sreenath

我不确定您可以直接这样做.应当将Web服务器从系统的其余部分中沙箱化.

但是,您可能会(从网站上)将必要的信息发布到数据库中,并在监视数据库并更新计划任务的同一框中运行Windows服务.

我不会这样做,因为那是一个巨大的安全问题.
I''m not sure you can - directly. The web server is supposed to be sandboxed from the rest of the system.

However, you could probably post the necessary info to a database (from the web site) and have a Windows servuice running on the same box that watches the database, and updates the scheduled tasks.

I wouldn''t do this though, because that''s a HUGE security issue.