I'm Sorry,

I'm not experienced using code, that's why I visit this BB.

What I meant actually is that I could not find out how to use it correctly.

On and off I tried some lines in the script but I can't get ik working.

I'd like to use the code provided by Sealeopard

Select
case isinsubnet(@ipaddress0,'192.168.1.0/24')
use u: '\\server1\share'
case isinsubnet(@ipaddress0,'192.168.2.0/24')
use u: '\\server2\share'
endselect

When I use this in my script, it gives an error in the line; 'case isinsubnet(@ipaddress..)

Part of the script looks like this;
_____________________________________________
IF INGROUP("TKH")
USE M: /DELETE /PERSISTENT
USE M: @LSERVER+"\DATA$"
USE O: /DELETE /PERSISTENT
USE O: @LSERVER+"\APPS$"
ENDIF

@IPADDRESS0

SELECT
CASE ISINSUBNET(@IPADDRESS0,"10.10.10.0/24")
USE U: "\\S000\"+@USERID+"$"
CASE ISINSUBNET(@IPADDRESS0,"10.10.20.0/24")
USE U: "\\S001\"+@USERID+"$"
ENDSELECT
_____________________________________________

Obviously I'm going wrong somewhere, so please help.

I don't want to use @site because we still have W9x clients.

Greetz,
Shintra