创建时间表(玉米)工作流程 [英] create schedule(corn) job process

查看:71
本文介绍了创建时间表(玉米)工作流程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好
我想创建一个schedule(corn)job进程,该进程每天或每周运行一次,以在asp.net中创建此进程(我使用linq代码),我需要哪个代码?是否添加了dll?

hello
i want to create a schedule(corn)job process which run daily or weekly to create this process in asp.net(i use linq code) which code i need?? any dll add or not??

推荐答案

如果您要谈论计划任务,可以参考下面的文章.这使您可以使用ASP.Net在服务器上创建/删除/更新计划的任务.

.NET的新任务计划程序类库 [ ^ ]
If you''re talking about scheduled tasks, you may refer to the article below. This allows you to create/delete/update scheduled tasks on your server using ASP.Net.

A New Task Scheduler Class Library for .NET[^]


对于类似于Cron的功能,在Windows上,您需要一些服务来安排事件并触发它们.

这样的服务已经存在,称为 Windows Task Scheduler ,请参阅:
http://en.wikipedia.org/wiki/Task_Scheduler [ http://msdn.microsoft.com/en-us/library/aa383614.aspx [ ^ ],
http://msdn.microsoft.com/en-us/library/aa384006%28v = VS.85%29.aspx [ ^ ].

有关使用Windows Task Scheduler的信息,请参见上面的最后一个链接.您可以使用 Task Scheduler Managed Wrapper 在程序中使用其API,请参见 http://taskscheduler.codeplex.com/ [^ ].

但是,如果它甚至更简单.
您可以通过Windows实用程序AT.EXE或SchTasks.EXE使用Windows Task Scheduler,请参见:
http://en.wikipedia.org/wiki/At_(Windows) [ http://technet.microsoft.com/en-us/library/bb490866.aspx [ ^ ],
http://en.wikipedia.org/wiki/Schtasks [ http://msdn.microsoft.com/zh-我们/library/windows/desktop/bb736357%28v=vs.85%29.aspx [
For a functionality similar to Cron, on Windows, you need some service to schedule events and trigger them.

Such service already exists, called Windows Task Scheduler, see:
http://en.wikipedia.org/wiki/Task_Scheduler[^],
http://msdn.microsoft.com/en-us/library/aa383614.aspx[^],
http://msdn.microsoft.com/en-us/library/aa384006%28v=VS.85%29.aspx[^].

See the last link above for use of the Windows Task Scheduler. You can use its API in your program using Task Scheduler Managed Wrapper, see http://taskscheduler.codeplex.com/[^].

But if can be even simpler.
You can use Windows Task Scheduler using Windows utilities AT.EXE or SchTasks.EXE, see:
http://en.wikipedia.org/wiki/At_(Windows)[^],
http://technet.microsoft.com/en-us/library/bb490866.aspx[^],
http://en.wikipedia.org/wiki/Schtasks[^],
http://msdn.microsoft.com/en-us/library/windows/desktop/bb736357%28v=vs.85%29.aspx[^].

—SA



对于.NET,您可以尝试
Quartz.NET .它具有sqlserver db provider,并且您有示例如何使用调度程序.
Hi,
For .NETyou can try Quartz.NET. It has sqlserver db provider and you have examples how scheduler is used.


这篇关于创建时间表(玉米)工作流程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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