Windows service not launching win app

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to build a windows service that will launch a .net windows app
when a file changes, using FileSystemWatcher.

This is the code I am using (shortened)....

Private Sub FileSystemWatcher1_Changed
Me.EventLog.WriteEntry("Sales.txt has changed")
Shell("C:\MyApp.exe", AppWinStyle.NormalFocus)
End Sub

The event fires and the event log gets written to, but the MyApp.exe does
not launch. Any help would really be appreciated.

Thanks, Craig
 
Back
Top