这是场景,例如我在pairing.txt 中列出了文件列表。现在我正在对列出的所有文件进行比较,然后生成报告。现在,我想要一个功能,使用户能够为一份报告提供多少个文件。例如,我列出了 205 个文件。
FIRST 100 - Report1.html
NEXT 100 - Report2.html
Remaining 5 - Report3.html
这是我的实际代码
for /f "tokens=2-4" %%a in ('type c:\user\pairing.txt') do (
set /A Counter+=1
echo Processing ColumnA : %%a ColumnB: %%b
echo Processing ColumnA : %%a ColumnB: %%b >>comparison.log
%varBCpath% %varBCscript% c:\user\ColumnA\%%a c:\user\ColumnB\%%b "c:\comp\report.html" "%title%" /silent
type c:\user\report.html >> c:\user\report\Report.html
)
它的作用是,它将获取pairing.txt 中列出的文件并使用beyond compare 进行比较。现在默认情况下,所有比较都将显示在 1 个 html 报告中。如果我希望用户可以选择输入他想在每个 html 报告中显示的文件数怎么办?