can anybody help me in calculating the completion of a
system.diagnostics.process.start
Process runprocess = new Process();
like for example I have this code :-
runprocess.StartInfo.FileName = "cmd.exe";//download the nmap application first to run nmap ..
runprocess.StartInfo.Arguments = "/c nmap -T4 -A -v -oX - 192.168.1.1-10 > file.xml";
runprocess.StartInfo.UseShellExecute = false;
runprocess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;// hiding the console
runprocess.StartInfo.CreateNoWindow = true;
runprocess.Start();
now I want to calculate process progress ..
while(!runprocess.HasExited)
{
//code to calculate the completion of the process and saving it to a int variable ..
}
please help me out with this I have searched everywhere but didn't get anything..