Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void Process()
- {
- Process _process = new Process();
- _process.StartInfo.FileName = "C:\Windows\notepad.exe";
- _process.StartInfo.UseShellExecute = false;
- _process.StartInfo.RedirectStandardOutput = true;
- // Start the process
- _process.Start();
- _process.BeginOutputReadLine();
- Task task = Task.Factory.StartNew(() => MonitorProcess());
- Console.WriteLine("Main ");
- }
- private static void MonitorProcess()
- {
- Console.WriteLine("Inside Monitor");
- string x = null;
- x = x.Trim();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement