title: How can I rename files of which I don't know the extension?
body: <p>I have a directory with these files:</p>
  
  <pre><code>one.txt
  two.mp3
  three.bmp
  </code></pre>
  
  <p>Is there any way to rename files using <a href="http://msdn.microsoft.com/en-us/library/aa365239%28VS.85%29.aspx" rel="nofollow">MoveFile()</a> but without specifying the extension of the file (all the files have different filenames)?</p>
  
  <p>If not, how can I rename these files to anything I want, when I only know the </p>
  
  <pre><code>one
  two
  three
  </code></pre>
  
  <p>?</p>