获取文件夹中前N个文件
2024-10-07 10:50:05
@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
最新文章
- BZOJ1055: [HAOI2008]玩具取名
- asp.net identity 2.2.0 在MVC下的角色启用和基本使用(一)
- R语言中的循环函数(Grouping Function)
- 内置函数 和 select练习3
- Kaleidoscope for mac
- 转载:Java连接MySQL 数据库的正确操作流程
- Linux学习之linux目录
- Spring 上下文
- 怎样看paper 最有效率
- qt 文本中显示中文
- 精读《useEffect 完全指南》
- 试写foxit reader的ConvertToPDF功能的wrapper
- Unnitest测试框架总结
- Java多线程——Condition条件
- Entry point (0x08000000) points to a Thumb instruction but is not a valid Thumb code pointer.
- http协议请求方法
- 能把opencv的源码也进行调试吗?(需要pdb文件才行)
- Eclipse——浏览功能
- 用jsp实现网站登录界面的制作,并连接数据库
- 20155331 2016-2017-2 《Java程序设计》第九周学习总结
热门文章
- Python自动化学习--批量执行.py用例
- New Machine Learning Server for Deep Learning in Nuke(翻译)
- java 通过反射获取数组
- 连续处理函数reduce
- 【NOIP2016提高A组8.12】通讯
- Excel: assign label to scatter chart using specific cell values
- 认识js数组
- CF D. Labyrinth 01BFS
- Elasticsearch的聚合操作
- [CSP-S模拟测试]:集合论(模拟)