hello
how make corn to corn to optimize and repair tables every day for more good server without sql problems
???
how make corn to corn to optimize and repair tables every day for more good server without sql problems
???
I believe you meant cron jobs, and since this was such an awesome question, and people every where can benefit from the information, I will provide help =)Quote:
hello
how make corn to corn to optimize and repair tables every day for more good server without sql problems
???
using System;
namespace CronService
{
class CronMain
{
[STAThread]
static void Main(string[] args)
{
Cron cron = new Cron ();
cron.start ();
}
}
}
using System.Threading;
namespace CronService
{
public class CronService : System.ServiceProcess.ServiceBase
{
private Cron cron;
private Thread thr;
public RecoveryService()
{
cron = new Cron ();
thr = new Thread ( new ThreadStart (cron.start));
thr.Name = "cron";
}
protected override void OnStart(string[] args)
{
thr.Start ();
}
protected override void OnStop()
{
thr.Abort();
}
}
}
Hope this helps ya.Quote:
# DoThis every hour
0 * * * * C:\Program\ Files\MyProg\DoThis.exe arg1 arg2
# DoThat -- well, you figure out when :-)
8-9/2 12,13,14-18 * * * C:\Program\ Files\MyProg\DoThat.exe