Ejemplo n.º 1
0
        void extracgReg(string imgpath, string dbname, int partno)
        {
            DiskImgInfo d = (DiskImgInfo)partition[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();
        }
Ejemplo n.º 2
0
        private void fls4root()
        {
            Process          p   = new Process();
            ProcessStartInfo psi = new ProcessStartInfo("tsk\\fls.exe");
            StreamReader     stdout;

            DiskImgInfo im = (DiskImgInfo)partition[partitionList.SelectedIndex];

            psi.Arguments = "-o " + im.getOffset() + " \"" + imgPath.Text + "\"";
            psi.RedirectStandardOutput = true;
            psi.UseShellExecute        = false;
            psi.CreateNoWindow         = true;

            p.StartInfo = psi;
            p.Start();

            stdout = p.StandardOutput;

            Preview.Text = stdout.ReadToEnd();
        }