从c#调度Windows Applcation [英] Scheduling the Windows Applcation from c#

查看:110
本文介绍了从c#调度Windows Applcation的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



是否可以从c#代码安排.Net应用程序?我需要从c#代码中选择开始时间和时间间隔。这可能吗?有人帮我这么做吗?

Hi,
Is Possible to Schedule a .Net application from c# code? I need to select Start Time and Time interval from our c# code. Is this possible? Any one help me to do this?

推荐答案

这真的取决于起点 - 如果你的C#代码是一个长时间运行的过程,甚至可能是一个服务,你可以(并且应该)看看将Quartz.Net挂钩到它 - 然后你可以创建一个'task / job'并使用CreateProcess / Process类型语义来启动外部exe
It really depends on the start point - if your C# code is a long running process or maybe even a service, you could (and should) take a look at hooking Quartz.Net into it - then you can create a 'task/job' and have that use CreateProcess/Process type semantics to start an external exe


此示例显示如何在Windows任务计划程序中创建任务。



请参阅此问题中的解决方案1 ​​任务计划程序未调用notepad.exe。 [ ^ ]。
This example shows how to create a task in Windows Task Scheduler.

See Solution 1 in this question Task Scheduler not calling notepad.exe.[^].


是的先生这是可能的..在计时器上勾选从路径打开Windows应用程序。
Yes sir this is possible..On timer's tick open windows application from path.


这篇关于从c#调度Windows Applcation的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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