Page 1 of 1 1
Topic Options
#182323 - 2007-11-07 05:31 PM Mapping with IF
marcelodelima Offline
Lurker

Registered: 2007-11-07
Posts: 3
Hi,

I need help!!!

I have a kixscript that map network drivers. One mapping is this:

 Code:
Use S: "\\server\" + @userid + "$"


In the cluster, there are two volumes to this mapping:
J:\Novell IB\pessoal and O:\PESSOAL2

Would like to change this map in kixscript to:

 Code:
Use S: "\\server\pessoal\" + @userid
to users folder in J:\Novell IB\pessoal (cluster server)

 Code:
Use S: "\\server\pessoal2\" + @userid
to users folder in O:\PESSOAL2 (cluster server)

How to do this using IF clase in my kix script?

Thanks!!!!!

Top
#182325 - 2007-11-07 05:38 PM Re: Mapping with IF [Re: marcelodelima]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4642
Loc: The Netherlands
When do you want to map the drives? I mean what should the If statement be?
Something like this?

 Code:
If InGroup("group1")
	;map some drives
EndIf

If InGroup("group2")
	;map some other drives.
EndIf


Edited by Mart (2007-11-07 05:38 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#182327 - 2007-11-07 06:07 PM Re: Mapping with IF [Re: Mart]
marcelodelima Offline
Lurker

Registered: 2007-11-07
Posts: 3
Hi Mart,

I want map drivers in startup, because my kix script is the script login.

I can to use "If InGroup" only Security Groups in active directory? or can to reference UNC Path for example:

If InGroup ("\\wcam33\pessoal\+@userid)
Use S: "\\server\pessoal\" + @userid
Else
If InGroup ("\\wcam33\pessoal2\+@userid)
Use S: "\\server\pessoal\" + @userid
Endif

Thanks,
Marcelo

Top
#182329 - 2007-11-07 08:18 PM Re: Mapping with IF [Re: marcelodelima]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Sounds more like you might want
 Code:
If Exist ("\\wcam33\pessoal\+@userid)
 Use S: "\\server\pessoal\" + @userid
Else
 If Exist ("\\wcam33\pessoal2\+@userid)
  Use S: "\\server\pessoal\" + @userid
 Endif
EndIf


Edited by Gargoyle (2007-11-08 04:46 AM)
Edit Reason: add code tags
_________________________
Today is the tomorrow you worried about yesterday.

Top
#182334 - 2007-11-08 01:35 AM Re: Mapping with IF [Re: Gargoyle]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11571
Loc: CA
Where are the CODE TAGS there Garg? ;\)
Top
#182339 - 2007-11-08 04:47 AM Re: Mapping with IF [Re: NTDOC]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
You are correct Doc, and so fixed....
_________________________
Today is the tomorrow you worried about yesterday.

Top
#182505 - 2007-11-12 03:45 PM Re: Mapping with IF [Re: Gargoyle]
marcelodelima Offline
Lurker

Registered: 2007-11-07
Posts: 3
Gargoyle,

Working fine your suggestion!!!


Thanks a Lot!!!!

Regards,
Marcelo

Top
Page 1 of 1 1


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

Who's Online
0 registered and 176 anonymous users online.
Newest Members
diefnet, Arogya, gkustra, emnipetro, Hirze
17644 Registered Users

Generated in 0.058 seconds in which 0.037 seconds were spent on a total of 13 queries. Zlib compression enabled.

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