Thank you for the quick reply, but... I still dont understand.
I'm sorry for sounding so stupid, I know nothing of scripting, and the triming doesnt make sense, where am I to put my IP information in the Trimming code?
Here is what I now have:
;LTRIM - TRIM THE LEADING SPACES FROM A STRING
;SUBSTR - RETURNS PART OF STRING: START POSITION, LENGTH
$1st = LTRIM(SUBSTR(@ipaddress0, 1, 3)) ; #ip#
$2nd = LTRIM(SUBSTR(@ipaddress0, 5, 3)) ; #ip# Get the IP# and assign it to $ipadr
$3rd = LTRIM(SUBSTR(@ipaddress0, 9, 3)) ; #ip#
$4th = LTRIM(SUBSTR(@ipaddress0, 13, 3)) ; #ip#
$ipadr = "$1ST.$2ND.$3RD.$4TH" ; #ip#
IF @IPADDRESS0 = " 10. 1. *. *"
USE M: "\\gbtsrv01\users"
ENDIF
If @IPADDRESS0 = " 10. 2. *. *"
USE N: "\\gbtsrv02\users"
ENDIF
_________________________
Everything is okay in the end. If it's not okay, then it's not the
end.