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

Re: Windows service not launching win app by Sijin

Sijin
Wed Sep 08 08:00:16 CDT 2004

Have you tried using Process.Start() ?

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph



Craig HB wrote:
> To add to that posting....
> When I look in Task Manager, MyApp.exe is there for each time that it should
> have launched, but it never actually launched.