Move file at windows command line: exclude single file (substring of other files)
<p>Something that I thought would be trivial here, but I’m writing a batch file to move <strong>web.config</strong> files. In a number of folders I have the following files in them</p>

<pre><code>web.config 
web.config.dev 
web.config.prod 
web.config.qa 
web.config.uat
web.config.preprod
</code></pre>

<p>and so on.
I want to leave the web.config file in place, as this is in source control, but the others aren’t and need to be moved. However, if I use:</p>

<pre><code>move web.config.* &lt;target&gt;
</code></pre>

<p>all of the abovementioned files move, including web.config (which doesn’t have the trailing .!?). So I somehow need to exluce that from the file move.</p>

<p>I can't even do:</p>

<pre><code>move web.config.?? &lt;target&gt;
move web.config.??? &lt;target&gt;
move web.config.???? &lt;target&gt;
</code></pre>

<p>As that still matches the web.config even with just web.config.?? </p>

<p>Is there a way to do it with the wildcard (*) or some other command that I’m missing?</p>