@echo off

set input="list.txt"

set srcDir="%1"

set /a fileCount=10

set /a curIndex=0

set line=

setlocal enabledelayedexpansion

:: 创建一个空的文件
echo. 2> %input%

for /f %%f in ('dir %srcDir%\*.jpg /l /b') do (
	echo %%f >> %input%
	
	:: 更新当前获取的文件数量
	set /a curIndex=!curIndex! + 1
	if !curIndex!==%fileCount% goto eof
)

:eof

 

相关文章:

  • 2022-12-23
  • 2021-11-25
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-05
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-06
  • 2021-06-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案