If you have windows 2000 clients in an Active Directory domain, then you can configure Microsoft SITES in AD. The "@SITE" macro returns the name of the site in which the computer resides. You will need to read about and understand how to configure sites in AD. If you do configure sites. then you can use a simple:
Code:

Select
Case @site = "Site1" $servername = "Somename"
Case @site = "Site2" $servername = "ADifferentName"
Case 1 ? "site not matched"
Endselect

_________________________
Home page: http://www.kixhelp.com/hb/