Page 1 of 1 1
Topic Options
#149687 - 2005-10-11 11:16 PM Limitation on how many drives Kix can map???
slee Offline
Fresh Scripter

Registered: 1999-10-06
Posts: 14
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..,

Top
#149688 - 2005-10-11 11:23 PM Re: Limitation on how many drives Kix can map???
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
It's your script.

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

Top
#149689 - 2005-10-11 11:35 PM Re: Limitation on how many drives Kix can map???
slee Offline
Fresh Scripter

Registered: 1999-10-06
Posts: 14
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..,
Top
#149690 - 2005-10-11 11:38 PM Re: Limitation on how many drives Kix can map???
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
It's possible your are having problems because you do not have enough if's corresponding to your endif's.
Top
#149691 - 2005-10-11 11:50 PM Re: Limitation on how many drives Kix can map???
slee Offline
Fresh Scripter

Registered: 1999-10-06
Posts: 14
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..,

Top
#149692 - 2005-10-11 11:55 PM Re: Limitation on how many drives Kix can map???
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
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


Top
#149693 - 2005-10-11 11:57 PM Re: Limitation on how many drives Kix can map???
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
ahh.. and your endif's are "end if"... that doesn't work with kix
Top
#149694 - 2005-10-12 12:16 AM Re: Limitation on how many drives Kix can map???
slee Offline
Fresh Scripter

Registered: 1999-10-06
Posts: 14
You are right.., now I feel stupid. However, it still only maps four drive at a time. It won't map z: "\\stusrv\cliparts".
Top
#149695 - 2005-10-12 12:22 AM Re: Limitation on how many drives Kix can map???
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
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.


Edited by Allen (2005-10-12 12:24 AM)

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 466 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.041 seconds in which 0.016 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org