I'm using this code:
to execute a process which emails a file... works fine, except that after it's sent I need to delete the file.Code:Process myProcess = new Process(); myProcess.StartInfo.FileName = filename; myProcess.StartInfo.UseShellExecute = true; myProcess.StartInfo.RedirectStandardOutput = false; myProcess.Start();
I'm guessing I need to set a callback method which will get called when the process ends?
How do I do this, or if that's not the right way to accomplish this let me know, thanks.




Reply With Quote