Title: Web Calendaring
Hi all,
 
I'd appreciate a little help with the following.
Trying to use the "domlist" tool from declude to create a host file to use with Imails store and forward.
So far (with previous help) I have:
<*******************************>
del /q domlist*.txt
domlist -list > domlist.txt
find "Alias:" domlist.txt> domlistallaliases.txt
find /v " -" domlistallaliases.txt> domlistdomainaliases.txt
for /f "tokens=2 skip=4" %%i in (domlistdomainaliases.txt) do @echo %%i>> domlistfinal.txt
find "mail." domlistfinal.txt> hosts.txt
<*******************************>
 
This ends up giving me a hosts.txt file containing:
<*******************************>
---------- DOMLISTFINAL.TXT
mail.domain1.com
mail.domain2.com
<*******************************>
 
I have 2 problems with this:
First, I can not seem to get rid of "---------- DOMLISTFINAL.TXT" in the file.
Second and most important, I cant figure out how to make the file tab delimited and containing the server ip. For example:
<*******************************>
127.0.0.1       mail.domain1.com
127.0.0.1       mail.domain2.com
<*******************************>
 
If anyone can point me in the right direction, let me know what to search for in Google, or help me write the script, I would be very grateful.
 
Thanks
 
Dave

Reply via email to