title: Running 7zip command line silently via Python
body: <p>I've seen plenty of questions regarding the python execution of a .exe file using popen and mentions of using PIPE to stop output of the process. Apologies if my terminology is incorrect, i'm very new to python.</p>
  
  <p>My main aim of this question to to add stdout=PIPE or something similar to prevent any output showing, such as </p>
  
  <blockquote>
    <p>"Extracting filename..." This is very bad as some rars are large.</p>
  </blockquote>
  
  <p>I am trying to run 7zip silently/hidden/quite. So that the entire process can run in the background and not interfere with current on screen operations.</p>
  
  <p>At this time, the current script works fine.</p>
  
  <p>Here is my python code:
  <strong>Python 2.7</strong></p>
  
  <p>Pythonw.exe used to execute code:</p>
  
  <p>pythonw.exe script.py</p>
  
  <pre><code>if ".rar" in input_file: 
  
      subprocess.Popen("C:\\Program Files (x86)\\7-Zip\\7z e " + input_file + " -o" + output_dest + " -y")
  </code></pre>
  
  <p>ALl help appreciated, thanks.</p>