openedFile = new System.Diagnostics.Process(); openedFile.EnableRaisingEvents = true; openedFile.StartInfo = new System.Diagnostics.ProcessStartInfo(tempPath); openedFile.Exited += new EventHandler(openedFile_Exited); openedFile.Start();