void extracgReg(string imgpath, string dbname, int partno) { DiskImgInfo d = partInfo[partno]; string dOffset = d.getOffset(); Process p = new Process(); ProcessStartInfo psi = new ProcessStartInfo("extreg.exe"); psi.Arguments = String.Format("\"{0}\" \"{1}\" \"{2}\"", imgpath, dOffset, dbname); p.StartInfo = psi; p.Start(); p.WaitForExit(); }
private void fls4root(string imgPATH, DiskImgInfo part) { Process p = new Process(); ProcessStartInfo psi = new ProcessStartInfo(".\\tsk\\fls.exe"); Console.Clear(); psi.Arguments = "-rp -o " + part.getOffset() + " \"" + imgPATH + "\""; psi.RedirectStandardOutput = true; psi.UseShellExecute = false; psi.CreateNoWindow = true; p.StartInfo = psi; p.EnableRaisingEvents = true; p.OutputDataReceived += p_OutputDataReceived; p.Start(); p.BeginOutputReadLine(); p.WaitForExit(); Console.WriteLine("\n"); }