title: Get filename in batch for loop
body: <p>I have the following For loop in a batch file:</p>
  
  <pre><code>for /R c:\test\src %%i IN (*.*) DO (
  MOVE %%i C:\test\destination
  ECHO %%i
  exit
  )
  </code></pre>
  
  <p>The result of the ECHO outputs the entire file path Ex: <strong>C:\Foldername\Filename</strong>
  I need to ECHO out only the <strong>Filename</strong>.Is there a specific command which would give me the filename ?
  Thanks !</p>