|
|
|||||||
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.., |
||||||||
|
|
|||||||
It's your script. Have you tried using @ERROR to troubleshoot why the drives aren't mapping? |
||||||||
|
|
|||||||
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.., |
||||||||
|
|
|||||||
It's possible your are having problems because you do not have enough if's corresponding to your endif's. |
||||||||
|
|
|||||||
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.., |
||||||||
|
|
|||||||
Here's two... need to add if or just remove endif Code:
|
||||||||
|
|
|||||||
ahh.. and your endif's are "end if"... that doesn't work with kix |
||||||||
|
|
|||||||
You are right.., now I feel stupid. However, it still only maps four drive at a time. It won't map z: "\\stusrv\cliparts". |
||||||||
|
|
|||||||
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:
You might also post your revised code. |