protected override void OnStart(string[] args) { timer1 = new Timer(); timer1.Elapsed += new ElapsedEventHandler(timer1_Elapsed); timer1.Interval = 60000; timer1.Enabled = true; } void timer1_Elapsed(object sender, ElapsedEventArgs e) { EventLog.WriteEntry("notepad call start"); Process.Start("notepad.exe"); EventLog.WriteEntry("notepad is called"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)