process-exit

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...

why we use any value in exit function in loop in c language

In C/C++ language loop statements we use exit(0), or exit(1) or other values. What is needed of that value, what is the role of that value in a loop when we exit the loop, and what is the meaning of 1 and 0 in exit()? ...