slee
(Fresh Scripter)
2005-10-11 11:16 PM
Limitation on how many drives Kix can map???

Hi Guys,

I use kix mainly to map drives to network shares. I have three drives that are mapped for everyone and two or more depending on which group they belong to. However, kix will not map any more than four drives or is it me and my script. Here is the script:

;MAP DIRVE SECTION
$drive="\\stusrv\"+@userid+chr(36)
use H: $drive

;MAP DRIVE FOR CAD CLASSROOM
IF INGROUP("CAD1")
USE Q: "\\STUSRV\106"
ENDIF

;BUSINESS
IF INGROUP("BUSINESS")
USE U: "\\STUSRV\BUSINESS$"
ENDIF

;MAP DRIVE FOR 415 CLASSROOM
IF INGROUP("MSPUB2")
USE T: "\\STUSRV\MSOFFICE$"
ENDIF

IF INGROUP("MSEXCEL4")
USE T: "\\STUSRV\MSOFFICE$"
ENDIF

IF INGROUP("MSWORD2")
USE T: "\\STUSRV\MSOFFICE$"
ENDIF

IF INGROUP("MSPPT3")
USE T: "\\STUSRV\MSOFFICE$"
ENDIF

IF INGROUP("MSOFFICE7")
USE T: "\\STUSRV\MSOFFICE$"
ENDIF

IF INGROUP("MSOFFICE6")
USE T: "\\STUSRV\MSOFFICE$"
ENDIF

IF INGROUP("MSOFFICE1")
USE T: "\\STUSRV\MSOFFICE$"
ENDIF

IF INGROUP("PROGRAMMING")
USE P: "\\STUSRV\PROGRAMMING$"
ENDIF

;MAP DRIVE FOR ENCARTA
USE N: "\\STUSRV\ENCARTA"
END IF

;MAP DRIVE FOR CLIPART
USE Z: "\\STUSRV\CLIPARTS"
END IF

;ADMIN SHARE
IF @USERID="administrator"
USE S: "\\NOCSERV01\SHARED"
ENDIF

;IMPACT
IF @USERID="atrainer"
USE M: "\\STUSRV\IMPACT"
ENDIF

Thanks..,


Chris S.
(MM club member)
2005-10-11 11:23 PM
Re: Limitation on how many drives Kix can map???

It's your script.

Have you tried using @ERROR to troubleshoot why the drives aren't mapping?


slee
(Fresh Scripter)
2005-10-11 11:35 PM
Re: Limitation on how many drives Kix can map???

Thanks for the reply and no I have not used @error. How do I use @error? Do I use it after every map command? I will try..,

AllenAdministrator
(KiX Supporter)
2005-10-11 11:38 PM
Re: Limitation on how many drives Kix can map???

It's possible your are having problems because you do not have enough if's corresponding to your endif's.

slee
(Fresh Scripter)
2005-10-11 11:50 PM
Re: Limitation on how many drives Kix can map???

Allen,

Looking at the script, I am not so sure if I am missing an ENDIF for every IF unless I am not looking at the same script..,


AllenAdministrator
(KiX Supporter)
2005-10-11 11:55 PM
Re: Limitation on how many drives Kix can map???

Here's two... need to add if or just remove endif
Code:
 
;MAP DRIVE FOR ENCARTA
USE N: "\\STUSRV\ENCARTA"
END IF

;MAP DRIVE FOR CLIPART
USE Z: "\\STUSRV\CLIPARTS"
END IF



AllenAdministrator
(KiX Supporter)
2005-10-11 11:57 PM
Re: Limitation on how many drives Kix can map???

ahh.. and your endif's are "end if"... that doesn't work with kix

slee
(Fresh Scripter)
2005-10-12 12:16 AM
Re: Limitation on how many drives Kix can map???

You are right.., now I feel stupid. However, it still only maps four drive at a time. It won't map z: "\\stusrv\cliparts".

AllenAdministrator
(KiX Supporter)
2005-10-12 12:22 AM
Re: Limitation on how many drives Kix can map???

Well, you can try what Chris suggested... place the following code after each use statement, and then step through the script to see what the errors are.
Code:

? "" + @error +":"+ @serror
gets $


You might also post your revised code.