echo off
::Specify the starting folder
:: Specify the folder set DIR = abc :: d:/abc Change the script to d:
set DIR="%cd%"
echo DIR=%DIR%
set /a n=0
setlocal enabledelayedexpansion
for %%f in (*.txt) do (
echo %%f
echo !n!
move %%f filted
set /a n+=1
echo
)
pause
::Specify the starting folder set DIR="%cd%"echo DIR=%DIR%set /an=0setlocal enabledelayedexpansionfor %%f in (*.txt) do ( echo %%fecho !n!move %%f filted
set /a n+=1echo )
pause