title: How can a Windows Service start a process when a Timer event is raised?
body: <p>I have created a Windows Service with Timer and in firing event of <code>timer.Elapsed</code> I am creating a process (<code>System.Diagnostics.Process.Start(exe path)</code>) at interval of 5 seconds. But this process does not get created on the firing of an event.</p>
  
  <p>Is there any other way of doing this?</p>
  
  <p>Thanks in advance.</p>
  
  <pre><code>private void timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
  {       
  
      Process pr = new Process();
      pr.StartInfo.FileName = @"C:\Program Files\Messenger\msmsgs.exe";
      pr.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
      pr.StartInfo.CreateNoWindow = false;
      pr.Start();
  }
  </code></pre>