Batch file stops running after the first command

前端 未结 4 1652
不知归路
不知归路 2020-12-08 06:19

I am using the tool \'HTML Match\' to compare two HTML files. As I have to compare many files, I create a batch file like the followion. For example, I give only five sets o

4条回答
  •  无人及你
    2020-12-08 06:42

    Add call in front of the commands you're running.

    You can also change this to a for loop, so:

    FOR /L %%i in (1,1,5) DO CALL HTMLMATCH.EXE D:\Raj\compare%%i%%\a%%i%%.html D:\Raj\compare%%i%%\a%%i%%.html D:\Raj\compare_res\a%%i%%.html
    

提交回复
热议问题