hello all,
i have a text file in the following format,
cn: testgroup
description: testgroup
mail: testgroep@fabrikcam.com
user1
user2
user3
cn: testgroup1
description: testgroup1
mail: testgroep1@fabrikcam.com
user1
user2
user3
user4
user5
from this file i try to create groups in active directory with vbscript, i
have the following script already,
but i can search for the strin cn:, but how do i return the next lines to a
variable?
so i seach for cn, and put the description, and mail and users in a variable
to create the group.
by the way the number of users vary per group, i can;t get it working, any
help would be appricated
greetings martin
strSearchcn = "cn:"
strSearchDis = "description:"
strSearchMail = "mail:"
Do While objFile.AtEndOfStream = True
strLine = objFile.ReadLine
If Instr(strLine, strSearchcn) Then
searchcn = Mid(strline,5)
End If