Maybe everyone knows, for those who don't know, let's learn.
It can also be used in other places.
It can also be used in other places.
::Without variable delay can also calculate
@echo off
for /f %%a in ('dir/b') do call :num_add file_num
echo There are %file_num% files (folders) in the directory.
pause
goto :eof
:num_add
set/a %1+=1
goto :eof┌───────┐
├→学习→实践→┤
└───────┘
├→学习→实践→┤
└───────┘

