title: Display items remaining as batch moves items
body: <p>I made this batch to move or copy items. I was wondering if there is a way to first have it search for the amount of files it needs to move/copy, then display how many items are left as it moves/copys them?  </p>
  
  <pre><code>@echo off
  set /a counter+=1
  set /p folder1=Folder Name:
  set TESTFOLDER=%folder1%
  set /p Type=Enter File Type:
  set /p copymove=Copy or Move:
  set /p directory=DIR:
  md "%TESTFOLDER%"
  set /a counter=0
  FOR /F "tokens=*" %%i IN ('DIR /S /B /A-D "%directory%\""*.%Type%"') DO FOR     /F "tokens=*" %%j IN ('DIR /B "%%i"') DO IF EXIST ".\%TESTFOLDER%\%%j" (
      set /a counter=!counter!+1
      echo folder: %TESTFOLDER%
      call %copymove% "%%i" ".\%TESTFOLDER%\"%%j_!counter!.%Type%""
  ) ELSE call %copymove% "%%i" ".\%TESTFOLDER%\%%j"
  :eof
  </code></pre>