I could if I wanted to. Actually was going to do it the other day. All you
need to do is to use the FOR command with /D switch.

something like

FOR /D %%A IN (*.*) DO CALL :APPEND_RULE %%A
GOTO END

:APPEND_RULE
SET ALREADY_THERE=NO
FOR /F %%X IN ('FINDSTR "whatever_the_rule_is" .\%1\rules.ima') DO SET
ALREADY_THERE=YES
IF "ALREADY_THERE" == "YES" GOTO END
ECHO whatever_the_rule_is >> .\%1\rules.ima
GOTO END

:END


                Andrey

----- Original Message -----
From: "Len Conrad" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 21, 2001 11:56 PM
Subject: Re: [IMail Forum] Global Rules?



>You don't even need Perl. I could write a batch file that would walk the
>directory tree and append the necessary lines to the rules.ima file inside
>each domain's directory.

Andy

"could" ??

I call your bluff, let's see your cards.  :))

Len



Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/


Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/

Reply via email to