I am using the following syntax to get the full name via ADSI:
Set objrep = GetObject("WinNT://mydomain/" & Trim(rep)) rep = Replace(objrep.FullName,"A-","")
|
You see in the second line I am replacing A- with a blank thus my problem is, the prefix of the Full Name is not necessarily A- it is a location code like A- for Atlanta S- for Scottsdale etc. Sure I could iterate throug all locations currently present but I am hoping to find a solution to do a generic replace of
whatever- to a blank. Anyone has an idea?