100分高分悬赏!因工作的特别要求,有1000个文件夹,每个文件夹里有几十个文件且都没有子文件夹没有二级目录,跪求一个批处理程序,实现批量统计这1000个文件夹的以下信息并按以下格式列到一个txt文本里。
(文件夹名)空格(文件夹第一个文件的文件名)空格(文件夹最后一个文件的文件名)空格(这个文件夹里的文件数量)
如果太抽象的话 我举个例子,比如其中一个文件夹,文件夹名是ABC,文件夹里有文件0001.jpg 0002.txt 0003.zip …… 0041.doc共41个文件,经过批处理后,其在批处理后生成的文本文件里属于它的那一行内容为:
ABC 0001.jpg 0041.doc 41
大师们,休怪我的要求奇葩,的确是工作需要,不到万不得已我真的不想问这么无厘头的问题。
但是这种批处理程序对高手来说,是易如反掌吧?
批处理文件放那1000文件夹并列位置运行,(或还可将此总文件夹拖到批处理文件图标上运行)结果在批处理文件同位置--统计.txt
@echo off