Windows comp command in script package: remove hints

Every time I use the windows command comp

, a message containing:

Compare more files (Y/N) ? 

      

... Can I avoid this by typing N

by default?

thank

+3


source to share


2 answers


You can also use another, and a built-in command FC

. It can do a binary comparison (you need to specify the /B

: switch FC /B file1 file2

), which seems closer to what it does COMP

, although the results are still displayed in a different format.



In any case, it doesn't ask for more files to compare, it just does the job and exits.

+3


source


You can point N there:



echo N | comp file1.txt file2.txt

      

+9


source







All Articles