@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

最新文章

  1. BZOJ1055: [HAOI2008]玩具取名
  2. asp.net identity 2.2.0 在MVC下的角色启用和基本使用(一)
  3. R语言中的循环函数(Grouping Function)
  4. 内置函数 和 select练习3
  5. Kaleidoscope for mac
  6. 转载:Java连接MySQL 数据库的正确操作流程
  7. Linux学习之linux目录
  8. Spring 上下文
  9. 怎样看paper 最有效率
  10. qt 文本中显示中文
  11. 精读《useEffect 完全指南》
  12. 试写foxit reader的ConvertToPDF功能的wrapper
  13. Unnitest测试框架总结
  14. Java多线程——Condition条件
  15. Entry point (0x08000000) points to a Thumb instruction but is not a valid Thumb code pointer.
  16. http协议请求方法
  17. 能把opencv的源码也进行调试吗?(需要pdb文件才行)
  18. Eclipse——浏览功能
  19. 用jsp实现网站登录界面的制作,并连接数据库
  20. 20155331 2016-2017-2 《Java程序设计》第九周学习总结

热门文章

  1. Python自动化学习--批量执行.py用例
  2. New Machine Learning Server for Deep Learning in Nuke(翻译)
  3. java 通过反射获取数组
  4. 连续处理函数reduce
  5. 【NOIP2016提高A组8.12】通讯
  6. Excel: assign label to scatter chart using specific cell values
  7. 认识js数组
  8. CF D. Labyrinth 01BFS
  9. Elasticsearch的聚合操作
  10. [CSP-S模拟测试]:集合论(模拟)