title: MS-DOS to make a batch execution of a command
body: <p>I have 50 files with this naming convention:</p>
  
  <pre><code>myObject.0001.obj
  ...
  myObject.0050.obj
  </code></pre>
  
  <p>I need to execute the following DOS command on those 50 files:</p>
  
  <pre><code>ply2vrmesh myObject.0001.obj myObject.0001.vrmesh
  ...
  ply2vrmesh myObject.0050.obj myObject.0050.vrmesh
  </code></pre>
  
  <p>I have written the following .bat with my limited rusty MS-DOS knowledge:</p>
  
  <pre><code>for %%T in (*.obj) do ply2vrmesh %%T %%T.vrmesh
  </code></pre>
  
  <p>It works but it converts <code>myObject.0001.obj</code> to <code>myObject.0001.obj.vrmesh</code>. I would like to get a clean naming instead like <code>myObject.0001.vrmesh</code>, and i don't know how to do this. </p>
  
  <p>If you guys have any idea it would be really helpful!</p>