Try something along the lines of this......
@echo off
echo.
echo This batch copies the files .\master\imailabuse.fwd
echo .\master\imailspam.fwd and .\master\imailvirus.fwd
echo into all subdirectories. It has to be started from
echo the root of any of your mail domain's directories.
echo.
pause
rem building userlist based on directory only
dir /B /AD users>dirlist.txt
echo.>rulecopy.log
echo Please wait while the file is copied ...
rem copy the source file to each directory
rem Note that this command must all be on one single line:
FOR /F "eol= tokens=1,* delims=/" %%i in (dirlist.txt) do echo %%i>>rulecopy.log &&
copy .\master\imailabuse.fwd .\users\"%%i" >>rulecopy.log
FOR /F "eol= tokens=1,* delims=/" %%i in (dirlist.txt) do echo %%i>>rulecopy.log &&
copy .\master\imailvirus.fwd .\users\"%%i" >>rulecopy.log
FOR /F "eol= tokens=1,* delims=/" %%i in (dirlist.txt) do echo %%i>>rulecopy.log &&
copy .\master\imailspam.fwd .\users\"%%i" >>rulecopy.log
type rulecopy.log
echo.
echo Check file rulecopy.log for details.
echo.
:END
Andrew Snowden, ICT Co-ordinator
Cheadle Hulme School,UK
---------- Original Message ----------------------------------
From: Heather Morris <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date: Thu, 8 Feb 2001 16:32:46 -0700 (MST)
>Does anyone know a quick way of updating all rules.ima files on the
>system? We have a couple hundred domains and copying the new rules to
>each subfolder can be a pain in the rear.. thanks!
>
>
>Heather
>
> (0 0)
> ----oOO----(_)----------
> | The geek shall |
> | Inherit the earth |
> -----------------oOO----
> |__|__|
> || ||
> ooO Ooo
>
>
>On Thu, 8 Feb 2001, Mark wrote:
>
>> Date: Thu, 08 Feb 2001 16:32:51 -0500
>> From: Mark <[EMAIL PROTECTED]>
>> Reply-To: [EMAIL PROTECTED]
>> To: [EMAIL PROTECTED]
>> Subject: Re: [IMail Forum] Filtering exe files
>>
>> At 07:53 AM 2/8/2001 -0800, you wrote:
>> >Ok... but how do you use that? Where do I put that? Do I just put that
>> >in the text file, just like that?
>>
>> This line goes in the rules.ima file. I find it easier to edit the file
>> with Textpad rather than adding the rules through the IMail
>> interface. Just go to the directory were you domain is stored. Looks for
>> a rules.ima file. e.g. c:\imail\orilliapronet_com\rules.ima
>>
>> Add the filter line to that file. If the file isn't there make one.
>>
>> Cheers
>> Mark
>>
>>
>> Orillia ProNet
>> 22A Colborne Street West
>> Orillia, Ontario, L3V 2Y3, Canada
>> 705-329-3949
>> www.orilliapronet.com
>> [EMAIL PROTECTED]
>
>--
> (0 0)
> ----oOO----(_)----------
> | The geek shall |
> | Inherit the earth |
> -----------------oOO----
> |__|__|
> || ||
> ooO Ooo
>
>
>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/