Page 1 of 1 1
Topic Options
#46401 - 2003-10-07 01:59 PM How to use UDF
Sloop Offline
Lurker

Registered: 2003-10-07
Posts: 2
Hello all,

I am kinda new to Kix scripting and never used UDF before. Does Kis2001 v4.21 supports UDF? And how the hell do I use it? I want to use the CHECK IF LAPTOP code which you have written here in this UDF Forum, but I dunno how to do that. What do I need, any other files, how to implement, etc.? Can someone help please? I just want to check in my kix script if the logged in computer is a notebook and then run a command.

Top
#46402 - 2003-10-07 02:07 PM Re: How to use UDF
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
This question would be better served in the Starters Forum. -

Looking in the KiXtart FAQ & How to's Section, we see:

How to use UDFs

How to write a UDF

This is also addressed in the Documentation too.

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#46403 - 2003-10-07 02:07 PM Re: How to use UDF
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
There are 2 ways:

place the udf in your script (everywhere you like, most prefer the end of the script) or save the udf in a seperate file and call it from your script :

call '[path\]filename.udf'
_________________________



Top
#46404 - 2003-10-07 02:19 PM Re: How to use UDF
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Also, to answer your other question - You need KIX32.EXE or WKIX32.EXE and your script. The EXE is used to run your script, and utilize your UDF, log and/or return results. Starting with 4.0, UDFs (or FUNCTION..ENDFUNCTION) are supported), so 4.21 will support this just fine.

There are a number of topics on how to deploy KIX32/WKIX32 to the client -

KiX upgrade: what are those new features? can upgrade be done without any danger?

Re-Write of the KIX32.EXE Deployment tool

kix421update.exe

wkix421update.exe

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#46405 - 2003-10-07 03:53 PM Re: How to use UDF
Sloop Offline
Lurker

Registered: 2003-10-07
Posts: 2
Thanks a lot guys. I copied and paste the code to the top of my kix-script, and the function works for doing the check "ComputerInGroup" on a domain group for computer objects. Tomorrow I will try the Check if Laptop function.

Thanks a lot,
greetinx...

Sloop

Top
#46406 - 2003-10-07 03:56 PM Re: How to use UDF
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Why wait until tommorrow? Why not test it out today and insure that it works tommorrow?

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

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.053 seconds in which 0.024 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