title: How to use wildcards in Windows Powershell V2.0
body: <p>I'm trying to do a simple copy with rename from the Powershell V2.0 command line as follows:</p>
  
  <pre><code>Copy-Item my_file.* my_file_old.*
  </code></pre>
  
  <p>I expect this to function the same as the DOS equivalent</p>
  
  <pre><code>copy my_file.* my_file_old.*
  </code></pre>
  
  <p>However, it's failing with the complaint "illegal characters in path". If I replace the wildcard <code>*</code> with a specific file number, e.g. 1, it works fine. </p>
  
  <p>I guess I'm basically trying to replicate that DOS version but in Powershell, where I'd like to use the <code>-Exclude</code> parameter once I get this basic version sorted out. </p>
  
  <p>What am I doing wrong? Some posts on another forum I found suggested wildcards were not supported in V2.0, but I can't believe that. That's like Microsoft saying "We just released a new version of Windows, but forgot to support keyboards and mice". </p>