#27321 - 2002-08-19 02:09 AM
Newbie in trouble
|
Clayton
Fresh Scripter
Registered: 2002-08-19
Posts: 29
Loc: Tampa, FL
|
Hello everyone. I'm a bigtime newbie to Kixtart. I've used it at a previous job but never had to program it. Now I'm in a situation where I need a script yesterday. I'm reading through everything but I'm still stuck. I'm in such a rush to get this done I'm not getting anywhere. Here's what I'm needing to do. I have a mixed NT/2000 Domain with mixed 95/98se/me/2000/xp clients. I'm needing to set drive mappings for specific groups and user personal drives. What's the best way to setup Kix? Can anyone help me get started? I'm going to continue to read through the forum here. Thanks for any help. [ 19. August 2002, 02:24: Message edited by: Clayton ]
|
|
Top
|
|
|
|
#27323 - 2002-08-19 03:09 AM
Re: Newbie in trouble
|
Clayton
Fresh Scripter
Registered: 2002-08-19
Posts: 29
Loc: Tampa, FL
|
Thanks! You saved me from huge headaches tomorrow morning!!!
|
|
Top
|
|
|
|
#27324 - 2002-08-19 01:41 PM
Re: Newbie in trouble
|
Bobby Chan
Fresh Scripter
Registered: 2002-02-07
Posts: 28
Loc: Montreal, Quebec, Canada
|
Just a note... From my experience, it is safer to unmap (use x: /delete) before you map, else, the mapping will fail.
|
|
Top
|
|
|
|
#27326 - 2002-08-19 08:23 PM
Re: Newbie in trouble
|
Clayton
Fresh Scripter
Registered: 2002-08-19
Posts: 29
Loc: Tampa, FL
|
Thanks everyone. I knew it would be simple just had to do this in a rush. I'm wanting to learn more about Kixtart so I'll be here more often. Here's what I have right now if you guys think I should do anything different please let me know.
If InGroup("ADM") Use h: "\\tpaprime01\ACCT" EndIf If InGroup("CORP") Use h: "\\tpaprime01\CORP" EndIf If InGroup("MEDMAL") Use h: "\\tpaprime01\MAL" EndIf If InGroup("REALAND") Use h: "\\tpaprime01\REALAND" EndIf If InGroup("ENV") Use h: "\\tpaprime01\ENV" EndIf If InGroup("CORP") Use h: "\\tpaprime01\CORP" EndIf If InGroup("FLOATER") Use h: "\\tpaprime01\DATA" EndIf If InGroup("INS") Use h: "\\tpaprime01\INS" EndIf If InGroup("LABOR") Use h: "\\tpaprime01\LABOR" EndIf
Use U: '\\tpaprime01\'+@USERID+'$$' /persistent Use G: \\tpaprime01\vol1\data Use J: \\tpaprime01\vol1 Use S: \\tpaprime01\shared Use W: \\tpaprime01\word Use X: \\tpaprime02\apps
|
|
Top
|
|
|
|
#27328 - 2002-08-19 08:33 PM
Re: Newbie in trouble
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Clayton, in your case based on your example code a SELECT...ENDSELECT would be more efficient than all the IF statments.
code:
Select Case InGroup("ADM") $share = "\\tpaprime01\ACCT" Case InGroup("CORP") $share = "\\tpaprime01\CORP" Case InGroup("MEDMAL") $share = "\\tpaprime01\MAL" Case InGroup("REALAND") $share = "\\tpaprime01\REALAND" Case InGroup("ENV") $share = "\\tpaprime01\ENV" Case InGroup("CORP") $share = "\\tpaprime01\CORP" Case InGroup("FLOATER") $share = "\\tpaprime01\DATA" Case InGroup("INS") $share = "\\tpaprime01\INS" Case InGroup("LABOR") $share = "\\tpaprime01\LABOR" EndSelect If $share <>"" Use H: $share Endif Use U: '\\tpaprime01\'+@USERID+'$$' /persistent Use G: "\\tpaprime01\vol1\data" Use J: "\\tpaprime01\vol1" Use S: "\\tpaprime01\shared" Use W: "\\tpaprime01\word" Use X: "\\tpaprime02\apps"
Also its better to enclose the path potion of the USE statement in quotes. [ 19. August 2002, 20:35: Message edited by: Howard Bullock ]
|
|
Top
|
|
|
|
#27330 - 2002-08-20 02:49 PM
Re: Newbie in trouble
|
Clayton
Fresh Scripter
Registered: 2002-08-19
Posts: 29
Loc: Tampa, FL
|
Yes Jens. I knew that but didn't pay attention to it. Thanks for pointing that out. I have the Kix manual printed out and sitting right here in front of me. I plan on reading through it.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 696 anonymous users online.
|
|
|