我正在使用工具“HTML Match”来比较两个HTML文件。因为我需要比较很多文件,所以我创建了一个像以下的批处理文件。例如,我只提供五组文件。
cd "C:\Program Files\HTML Match"
HTMLMATCH.EXE "D:\Raj\compare1\a1.html" "D:\Raj\compare2\a1.html" "D:\Raj\compare_res\a1.html"
HTMLMATCH.EXE "D:\Raj\compare1\a2.html" "D:\Raj\compare2\a2.html" "D:\Raj\compare_res\a2.html"
HTMLMATCH.EXE "D:\Raj\compare1\a3.html" "D:\Raj\compare2\a3.html" "D:\Raj\compare_res\a3.html"
HTMLMATCH.EXE "D:\Raj\compare1\a4.html" "D:\Raj\compare2\a4.html" "D:\Raj\compare_res\a4.html"
HTMLMATCH.EXE "D:\Raj\compare1\a5.html" "D:\Raj\compare2\a5.html" "D:\Raj\compare_res\a5.html"
当我在命令提示符中执行这个批处理文件时,只有第一行,也就是'a1.html',被比较并产生了结果。然后执行就停止了。
cd
命令之外,我指的是在你编写的每一行前面加上call
命令。 - Ben