Advertisement
Guest User

C# Using 7zip to get list of files in an archive

a guest
Apr 1st, 2012
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. Process t = new Process();
  2. t.StartInfo.FileName = "7za.exe";
  3. t.StartInfo.Arguments = "e " + filePath[i] + " -y -o" + directory[3];
  4. t.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
  5. t.EnableRaisingEvents = true;
  6. t.StartInfo.UseShellExecute = false;
  7. l.StartInfo.RedirectStandardOutput = true;
  8. t.Start();
  9. Console.WriteLine(l.StandardOutput.ReadToEnd());
  10. t.WaitForExit();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement