title: Using Windows ren command to remove ! from filename
body: <p>I have a bunch of files that are in the following format</p>
  
  <pre><code>filename-!#.ext
  </code></pre>
  
  <p>where # is an incrementing number to prevent collisions. I would like to just remove the ! from the filename so it reads as</p>
  
  <pre><code>filename-#.ext
  </code></pre>
  
  <p>It seems like I could do this with the ren command and wildcards but having a hard time getting it to work. I tried running this:</p>
  
  <pre><code>ren *!?.ext *?.ext
  </code></pre>
  
  <p>My thought is the * should match the filename- part, then !, then the ? for the numeric. However, the resulting file is named this:</p>
  
  <pre><code>filename-!#.ext.ext
  </code></pre>
  
  <p>and I can't quite figure out why. </p>
  
  <p>The filename part can be dynamic, but won't contain any !'s. Any ideas?</p>