Forum posts for msmsgs.exe

How can a Windows Service start a process when a Timer event is raised?

I have created a Windows Service with Timer and in firing event of timer.Elapsed I am creating a process (System.Diagnostics.Process.Start(exe path)) at interval of 5 seconds. But this process does not get created on the firing of an event.

Is there any other way of doing this?

Thanks in advance.

private void timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{

Process pr = new Process();
pr.StartInfo.FileName = @'C:Program FilesMessengermsmsgs.exe';
pr.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
pr.StartInfo.CreateNoWindow = false;
pr.Start();
}

View complete forum thread with replies

Other posts related to msmsgs.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

How can a Windows Service start a process when a Timer event is raised?

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.