Sloop
(Lurker)
2003-10-07 01:59 PM
How to use UDF

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.


Kdyer
(KiX Supporter)
2003-10-07 02:07 PM
Re: How to use UDF

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


JochenAdministrator
(KiX Supporter)
2003-10-07 02:07 PM
Re: How to use UDF

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'


Kdyer
(KiX Supporter)
2003-10-07 02:19 PM
Re: How to use UDF

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


Sloop
(Lurker)
2003-10-07 03:53 PM
Re: How to use UDF

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


Kdyer
(KiX Supporter)
2003-10-07 03:56 PM
Re: How to use UDF

Why wait until tommorrow? Why not test it out today and insure that it works tommorrow?

Kent