Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Done Accessing count results from various commands

May
3,515
5
Several commands report various match counts in their text output. DIR
reports file count, directory count, total storage used, etc. FFIND reports
number of files and matching lines. Many other commands also include such
reports. In many instances in a batch file one may need nothing but the
number, and must parse redirected output to find the values. I suggest that
all such commands set internal variables with their names styled
_commandname_reporttype. For example, FFIND could set _FFIND_LINES and
_FFIND_FILES, resp., for the number of matching lines and matching files, as
reported in the last (summary) line of its output.
--
Steve
 
Accessing count results from various commands

I would find something like that useful. I did a similar function with
my TIMEDIR that can return errorlevel to represent all sorts of those
type of values.

On Tue, Jun 2, 2009 at 8:05 AM, Steve Fábián <> wrote:

> Several commands report various match counts in their text output. DIR
> reports file count, directory count, total storage used, etc. FFIND reports
> number of files and matching lines. Many other commands also include such
> reports. In many instances in a batch file one may need nothing but the
> number, and must parse redirected output to find the values. I suggest that
> all such commands set internal variables with their names styled
> _commandname_reporttype. For example, FFIND could set _FFIND_LINES and
> _FFIND_FILES, resp., for the number of matching lines and matching files, as
> reported in the last (summary) line of its output.
> --
> Steve
>
>
>
>
>
>
>
>



--
Jim Cook
2009 Saturdays: 4/4, 6/6, 8/8, 10/10, 12/12 and 5/9, 9/5, 7/11, 11/7.
Next year they're Sunday.
 
Back
Top