DeleteFile of an EXE immediately after Process.WaitForExit fails
I do the following: Copy an executable to C:\temp\x.exe Start the executable with System.Diagnostics.Process.Start and then wait for the process to exit, synchronously, by calling WaitForExit on the Process object returned by Start. Delete the executable C:\temp\x.exe On some machines, this works great, but on others, the call to Del...