Folder Comparisons Via Command Line

后端 未结 6 658
我在风中等你
我在风中等你 2020-12-29 13:20

I want to compare two folders on Windows (Vista, XP) which have a large number of huge files, which I need to compare. If I use Beyond Compare or such tool to compare the fo

6条回答
  •  悲&欢浪女
    2020-12-29 13:49

    Basing on answer of Martin Tournoij I'v written next (and it working well):

    del a.txt
    forfiles /P %1 /M *.c* /S /C "cmd /c comp /a @path @file /M" >> a.txt
    forfiles /P %1 /M *.h /S /C "cmd /c comp /a @path @file /M" >> a.txt
    forfiles /P %1 /M *.s /S /C "cmd /c comp /a @path @file /M" >> a.txt
    

    It looks in subdirectories and don't ask any quiestions...

提交回复
热议问题