|
|
|||||||
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 Code: Use S: "\\server\pessoal2\" + @userid How to do this using IF clase in my kix script? Thanks!!!!! |
||||||||
|
|
|||||||
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 |
||||||||
|
|
|||||||
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 |
||||||||
|
|
|||||||
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 |
||||||||
|
|
|||||||
Where are the CODE TAGS there Garg? |
||||||||
|
|
|||||||
You are correct Doc, and so fixed.... |
||||||||
|
|
|||||||
Gargoyle, Working fine your suggestion!!! Thanks a Lot!!!! Regards, Marcelo |