English 中文(简体)
小型Windows A. 编码工作队表
原标题:Mimic Windows Task Scheduler with code

I m looking for a way to make a program that runs itself (or a method) every X time (days, weeks, whatever). Basically, I want my program to do what the Windows Task Scheduler could do. The reason I don t use the Task Scheduler is because I plan to deploy this application on a server which I have no remote access to, but need to re-generate some files every given time.

建议

最佳回答

您可使用Quarts.net:

http://quartznet.sourceforge.net/

问题回答

您仅能作为一个服务机构实施一个方案,可以有一个<条码><>日码/代码>,按您需要的时间表执行。 Topshelf是一个简单的服务东道主。 您可以提供这一服务的网络。 我认为,所提供的抽样服务只是在很小的间隔时间提供。

设立一个Windows Service,使用一个时间。 你们可以走到系统之间。 Timers. Timer and System. 翻新。 根据你在此可以发现的分歧,时间更长:





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签