Hi,

I have created a windows service which contains a fileSystemWatcher.
In the created event of file watcher, i am trying to start a console
application...as below..
                    Process p = new Process();
                    p.StartInfo.Arguments = (arg.Replace("\\",
"/").Replace(" ", "*"));
                    p.StartInfo.WindowStyle =
ProcessWindowStyle.Normal;
                    p.StartInfo.FileName = _appPath;
                    Boolean processStarted = p.Start();

The problem iam facing is.. The process after starting is getting
killed within 5 secs of time. I dont know why its happening like that.
The console app contains code that has some IO operations, etc.

Please help me..Thanks in Advance..

Ram.

Reply via email to