title: Python: Setting Multiple Attributes for a file (e.g. System, Hidden)
body: <p>What is the way to set multiple file-attributes using Python?</p>
  
  <p>E.g. I want to set a file's attribute to System, Hidden.</p>
  
  <p>I can use something like below, but it will just set just one attributes, and overwrite the previous write:</p>
  
  <pre><code>import win32con, win32api, os
  
  filename = "some file name"
  
  win32api.SetFileAttributes(filename,win32con.FILE_ATTRIBUTE_SYSTEM)
  win32api.SetFileAttributes(filename,win32con.FILE_ATTRIBUTE_HIDDEN)
  </code></pre>
  
  <p>This will end up with just Hidden attribute.</p>
  
  <p>How do you set both attributes at once? Thanks.</p>