Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在ASP.NET C上运行below.exe时,如何计算结束时间百分比#_C#_Asp.net_Multithreading_Security_Visual Studio 2013 - Fatal编程技术网

C# 在ASP.NET C上运行below.exe时,如何计算结束时间百分比#

C# 在ASP.NET C上运行below.exe时,如何计算结束时间百分比#,c#,asp.net,multithreading,security,visual-studio-2013,C#,Asp.net,Multithreading,Security,Visual Studio 2013,我想按下按钮,它应该继续,并显示百分之时间,当我点击另一页,代码应该在后台。在我点击这个页面之后,它会显示我正在运行的.exe进程的结果。 我该怎么做?我需要你的帮助 ProcessStartInfo startInfo = new ProcessStartInfo(); Process p = new Process(); startInfo.CreateNoWindow = true; startInfo.RedirectStandardOutput = true; startInfo.Us

我想按下按钮,它应该继续,并显示百分之时间,当我点击另一页,代码应该在后台。在我点击这个页面之后,它会显示我正在运行的.exe进程的结果。 我该怎么做?我需要你的帮助

ProcessStartInfo startInfo = new ProcessStartInfo();
Process p = new Process();
startInfo.CreateNoWindow = true;
startInfo.RedirectStandardOutput = true;
startInfo.UseShellExecute = false;
startInfo.Arguments = "/Scan http://localhost/deneme/sunucu.html /Profile web_applications /SaveToDatabase –ScanningMode=Heuristic –UseAcuSensor=TRUE –EnablePortScanning=TRUE";
startInfo.FileName = @"C:\\Program Files (x86)\\Acunetix\\Web Vulnerability Scanner 9.5\wvs_console.exe";
p.StartInfo = startInfo;
p.OutputDataReceived += (sender, args) => Console.WriteLine("received output: {0}", args.Data);        
p.Start();
p.BeginOutputReadLine();
StreamReader output = p.StandardOutput //i tried beginoutputreadline
p.WaitForExit();        
ListBox1.Items.Add(output.tostring());
问候,