use this bat file.  It will create a file named allusers.log that you can then rename 
to your list file for creating the allusers mailing list.

A note though, it does add all users, inactive users are included...

bob
--------------------------------------------------------
@echo off

echo.
echo This batch creates a file of all users with the domain name set by whats.
echo included in this batch file.
echo First it creates the directory list based on the folder names in the users
echo folder and then writes the UID and domain name to the allusers.log file.
echo Make sure and change the drive letter to where you have Imail installed.
echo .
rem pause  You may need to change the dir below.
d:
cd \imail
rem building userlist based on directory only
dir /B /AD users>dirlist.txt
echo.>allusers.log

echo Please wait while the allusers.log file is created ...

rem Change somedomain.com to your domain name.
rem Note that this command must all be on one single line:

FOR /F "eol= tokens=1,* delims=/" %%i in (dirlist.txt) do echo 
[EMAIL PROTECTED]>>allusers.log

rem echo Check file allusers.log for details.
rem echo.
--------------------------------------------------------


On Friday, June 8, 2001 8:37 AM, KYI, Inc. <[EMAIL PROTECTED]> wrote:
>Does anyone know  of an easy way to take all my users using IMail and put
>them into a mailing list ?? Right now I export the user list into an excel
>spreadsheet just get their userID and import their userIDS into a test files
>and add the domain to the end of them.
>
>Manny
>



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