.bat file to compare two text files and output the difference

前端 未结 3 1679
陌清茗
陌清茗 2020-12-10 16:27

I am trying something new that I have done on UNIX successfully but have no idea how to do on windows.

So I save a text file, let\'s say test1.txt and 12 hours later

3条回答
  •  情深已故
    2020-12-10 17:31

    You can try something like this:-

      @echo off
       :main
       fc c:\filename r:\filemame > nul
       if errorlevel 1 goto error
    
       :next
       echo insert next CD
        pause
      goto main
    
      :error
      echo failed check
    

    From the source

提交回复
热议问题