|
Hello Basta,
Thx for your information.
What I want the result of the script to look like is for users only to have a U: mapping when they are in their "home"subnet. When a user logs on in any other subnet, he should not get a U: mapping. The M: and O: mapping can always exist.
Following is the testscript I use to find out how to provide user with a U: mapping based on their subnet. __________________________________________________ ;DEBUG "ON"
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
SELECT CASE INGROUP("DKP-PRINTER1") AddPrinterConnection("\\S000\DKP-PRINTER1")
CASE INGROUP("ENS-PRINTER1") AddPrinterConnection("\\S000\ENS-PRINTER1") CASE INGROUP("HBG-PRINTER1") AddPrinterConnection("\\S001\HBG-PRINTER1") ENDSELECT __________________________________________________ The error returned is;
Error : expected expression! Script: c:\kixtart.kix line : 13
I'm using kixtart version 4.21 from the netlogon share using a Windows 2000 client.
I also tried the following lines;
Select case ingroup("S000")and isinsubnet (@ipaddress0,"10.10.10.0/24") use u: "\\S000\+@userid+"$"
case ingroup("S001") and isinsubnet(@ipaddress0,"10.10.20.0/24") use u: "\\S001\+@userid+"$" endselect
Earlier today I read something about that technique is making it easier for the complex mind and more complex for the simple mind.
To me this is true about scripting, that's why I turned to this BB.
Something is missing in my script. Could you tell me what?
Greetz, Shintra
|