|
Another noob that needs help :-)
|
|
Haven't found anything on seach here, neither in the documentation; or maybe I am just blind :-) Is there any chance to call a batch file out of a kix script?
|
Mart
|
(KiX Supporter)
|
2007-06-04 01:50 PM
|
|
|
|
|
Re: Another noob that needs help :-)
|
|
Sure.
Have a look at Shell, Call and/or Run.
|
|
Re: Another noob that needs help :-)
|
|
Thanks, couldn't find call in the docs, but shell does what I want. One more: any chance to get the hostname of the workstation?
|
Mart
|
(KiX Supporter)
|
2007-06-04 02:05 PM
|
|
|
|
|
Re: Another noob that needs help :-)
|
|
Sure. Have a look at @wksta. There are more macro's to get info from a workstation. Have a look at page 115 and up in the 4.53 manual.
|
|
Re: Another noob that needs help :-)
|
|
Thanks :-)
|
|
Re: Another noob that needs help :-)
|
|
One more problem I got... I tested for groups to map different network drives.. single group testing works fine, but multiple does not.. don't know why.
If (InGroup("51-Jugendamt-Lernen") OR InGroup("51-Jugendamt FB-510") OR InGroup("51-Jugendamt FB-511") OR InGroup("51-Jugendamt FB-512") OR InGroup("51-Jugendamt FB513") OR InGroup("51-Jugendamt FB-Leit"))
USE G: /DELETE
USE G: "\\server\share"
else
USE G: /DELETE
USE G: "\\server\otherShare"
endif
Any ideas? Sorry if that maybe is a silly questions (like most of mine are atm)
|
Mart
|
(KiX Supporter)
|
2007-06-05 09:36 AM
|
|
|
|
|
Re: Another noob that needs help :-)
|
|
You have an extra unneeded ) at the end of the first line.
|
|
Re: Another noob that needs help :-)
|
|
Not really. I put that whole if-clause in brackets.. no need for them?
|
Arend_
|
(MM club member)
|
2007-06-05 09:55 AM
|
|
|
|
|
Re: Another noob that needs help :-)
|
|
Try this
If InGroup("51-Jugendamt-Lernen") OR InGroup("51-Jugendamt FB-510") OR InGroup("51-Jugendamt FB-511") OR InGroup("51-Jugendamt FB-512") OR InGroup("51-Jugendamt FB513") OR InGroup("51-Jugendamt FB-Leit")
Use G: /DELETE
Use G: "\\server\share"
Else
Use G: /DELETE
Use G: "\\server\otherShare"
EndIf
|
|
Re: Another noob that needs help :-)
|
|
Try this:
If InGroup("51-Jugendamt-Lernen", "51-Jugendamt FB-510", "51-Jugendamt FB-511", "51-Jugendamt FB-512", "51-Jugendamt FB513", "51-Jugendamt FB-Leit")
USE G: /DELETE
USE G: "\\server\share"
else
USE G: /DELETE
USE G: "\\server\otherShare"
endif
Simplifies the test, as InGroup accepts a single group, list of groups, or a 1-dimension array of groups as an argument. The default is "or" - membership in any one group, but an optional arg < InGroup(list, 1) > changes it to "and" - membership in all listed groups.
BTW - you might want to D/L the login script from my web site - it handles all kinds of group and OU membership tests (including complex constructs like - member of group a AND group b, but Not group c), and has cool features like path-rewriting. I've used it at dozens of clients without any code changes, and first deployed the core code in 1997 (so its well tested). It uses an INI file for configuration, and even supports user-specific config files (great for testing).
Glenn
|
|
Re: Another noob that needs help :-)
|
|
Thanks for the help :-)
|
Mart
|
(KiX Supporter)
|
2007-06-05 02:18 PM
|
|
|
|
|
Re: Another noob that needs help :-)
|
|
Not really. I put that whole if-clause in brackets.. no need for them?
A bit late but nope there is no need to put the entire if statement between brackets.
|
|
Re: Another noob that needs help :-)
|
|
OK I'll keep that in mind :-)
|