Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

windows comp command in batch script: remove prompts

Every time I use the Windows comp command, a message containing:

Compare more files (Y/N) ? 

is shown. Can I avoid it by typing N by default?

thanks

like image 217
Luis Andrés García Avatar asked Jan 22 '13 14:01

Luis Andrés García


1 Answers

You can pipe an N in there:

echo N | comp file1.txt file2.txt
like image 184
Johnny Mopp Avatar answered Oct 08 '22 05:10

Johnny Mopp