title: Remove string from file name, using windows cmd
body: <p><strong>EDIT:</strong>
  Thank you all, 
  Magoo tips fix it , I using the following code:</p>
  
  <pre><code>echo off
  cls
  setlocal enabledelayedexpansion
  
  for %%f in (*.mov) do (
      set name=%%~nf
      set new_name=!name:*_= !
      echo File renamed from: !name!.mov to:!new_name!.mov
      rename %%f !new_name!.mov
  )
  </code></pre>
  
  <p>This only works if the file name is something_file_name.mov. If original file is only file_name.mov, I end up it only name.mov
  So using REGEX is the best option.
  I'm using a tweaked version of Ben Personick and Squashman suggestions.</p>
  
  <pre><code>@echo off
  cls
  SET "_Regex=^[0-9]*_"
  
  FOR %%F IN (*.mov) DO (
      ECHO.%%~nF | findstr /R "%_Regex%" &gt;nul &amp;&amp; (
          FOR /F "Tokens=1* Delims=_" %%f IN ("%%~nxF") DO (
              MOVE /Y "%%F" "%%g"
          )
      )
  )
  </code></pre>
  
  <p>I have some files named 3424_file_name.mov and need to remove the numbers until the first _ so to get file_name.mov 
  Even better would be to set a range to remove like [0-9] 
  Like to do it in cmd windows 7. This is what i got so far, but not working.</p>
  
  <pre><code>cls
  setlocal enabledelayedexpansion
  
  for %%f in (*.mov) do (
   set name=%%~nf
   set new_name=%name%:*_=x
   echo %new_name%)
   rename %%f %new_name%.mov
   )
  </code></pre>
  
  <p>Thanks
  Alex</p>