Re: dos command comp(are): how do you deactivate prompting?


[ Follow Ups ] [ Post Followup ] [ The EasyDOS Forum ] [ FAQ ]

Posted by SpywareDr on January 23, 2009 at 03:22:57:

In Reply to: dos command comp(are): how do you deactivate prompting? posted by Bonnie on January 22, 2009 at 14:22:16:

: I am using 'comp' within a Perl script. For
: each file in a list, I am comparing it to
: another file. However, after the command
: executes for each file, I get the following
: prompt:
:
: Compare more files(Y/N)?
:
: I'd like to turn this off, or somehow have 'N'
: fed to it so that no manual user interaction is
: required.
:
: Thanks!

##

Pipe a "n" to it. For example, if your command was:

comp foobar1.txt foobar2.txt

change it to:

echo n|comp foobar1.txt foobar2.txt


Follow Ups:



Post a Followup (use TAB key to move between boxes - NOT ENTER or RETURN)

Name:
E-Mail:

Subject:

Type your comments in the box below and SUBMIT:


[ Follow Ups ] [ Post Followup ] [ The EasyDOS Forum ] [ FAQ ]