title: In PowerShell, how to list files that do not have an extension, like "dir *." used to in the command prompt?
body: <p>For example, if I have two files</p>
  
  <pre><code>foo
  foo.txt
  </code></pre>
  
  <p>In the old-fashion command prompt</p>
  
  <pre><code>dir *.
  </code></pre>
  
  <p>returns <code>foo</code> as desired (along with <code>.</code> and <code>..</code>).</p>
  
  <p>However the same command in PowerShell returns an empty list. How to circumvent that?</p>