title: Python WindowsError: [Error 123] The filename, directory name, or volume label syntax is incorrect:
body: <p>I am new to programming, this is actually my first work assignment with coding.  my code below is throwing an error:</p>
  
  <pre><code>WindowsError: [Error 123] The filename, directory name, or volume label syntax is incorrect.
  </code></pre>
  
  <p>I'm not able to find where the issue is.</p>
  
  <pre><code>import os
  
  folders = ["pdcom1", "pdcom1reg", "pdcomopen"]
  
  
  for folder in folders:
      path = r'"C:\Apps\CorVu\DATA\Reports\AlliD\Monthly Commission Reports\Output\pdcom1"'
      for file in os.listdir(path):
          print file
  </code></pre>