I sent the whole ball of wax to Brian. Not thinking again. Sorry Brian.
May be that someone else on the list could use this. Or get a good
chuckle out of it.
Here is the snip portion of the batch that I use to update the mailing list.
It could be modified to add users to as many list as needed. As usual
I have a hokey old fashioned way about doing things.
echo [EMAIL PROTECTED]>>e:\imail\lists\announce\users.txt
if errorlevel==1 goto NOUSER
echo [EMAIL PROTECTED]>>e:\imail\lists\announce\users.lst
Where %1 is the varable for the user and domain.com should
be replaced with your domain.
The path needs to be adjusted to the path of your list.
Then I run the sort command.
echo Sorting list alphabetically>>d:\Logfiles\batch\adduser.log
e:
cd\imail\lists\announce
type users.txt | sort >> lists.tmp
copy lists.tmp users.txt
del lists.tmp
type users.lst | sort >> lisuser.tmp
copy lisuser.tmp users.lst
del lisuser.tmp
echo Sorted list alphabetically>>d:\Logfiles\batch\adduser.log
Dusty
----- Original Message -----
From: Brian Politis <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 30, 1999 4:10 PM
Subject: RE: [IMail Forum] Sorting Mailing Lists
Thanks Dusty. I didn't even know the "sort" command existed. Gotta love
Dos and Batch files!
Do you have a method of dynamically updating your mailing lists for this, or
do you simply edit the file as needed? I actually only have about 6 files
to worry about, so editing wouldn't be a problem, I'm really just curious.
Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.