Page 1 of 1

String split issue

Posted: 26 Jul 2010 14:29
by sriniraghavan
My problem is this..

I have a string, "uniqueMember=cn=HK ILP Group,ou=groups,dc=yyy,dc=com". I need to extract the string HK ILP Group from this. I have tried multiple delimiters but nothing gives this back. Help please!

Re: String split issue

Posted: 26 Jul 2010 14:55
by !k

Code: Select all

set "string=uniqueMember=cn=HK ILP Group,ou=groups,dc=yyy,dc=com"
for /f "tokens=3 delims==," %%a in ("%string%") do echo %%a