#208728 - 2014-03-18 09:23 PM
Java 7 Registry Whitelist
|
Zack14
Just in Town
Registered: 2014-01-29
Posts: 2
Loc: Maryland
|
Hello Fellow Engineers,
I have been searching the net for a script or a tutorial on how to create a Java 7 registry based white list that I can wrap into the Login Script and also copy locally to individual consoles.
I'm fairly new to scripting with KixTart but am willing to learn/master the language. I need but only a wise KixTart Sensei to guide me in the right direction.
Thank you in advanced from one nerd to another
|
|
Top
|
|
|
|
#208746 - 2014-03-19 08:48 PM
Re: Java 7 Registry Whitelist
[Re: Zack14]
|
Glenn Barnas
KiX Supporter
   
Registered: 2003-01-28
Posts: 4403
Loc: New Jersey
|
UDFs will become your best friend.. These are "User Defined Functions" and there are hundreds available. My entire UDF library is published nightly at 8pm EDT. Many, many more are here on KORG.
Search for a UDF, copy/paste it into your code and call it like any other Kix function. The first that comes to mind is the CSV UDF, which converts between an array of data and a CSV formatted text string (and Vice Versa).
You might also review the use of Read and WriteProfileString to manipulate INI files. These can be looked at as a very simple database, with Sections as Tables, Values as Records, and the data referenced by the value as the fields. This is particularly true if you use CSV formatted data in the values!
Kix makes this much easier than many other languages, with embedded support for INI and Registry manipulation.
Again - provide us with the concepts and we'll help.. Pseudo-code, as shown below, is very helpful.Read file, get XXX data Check registry, if not found, add Process next Regards,
Glenn
_________________________
Actually I am a Rocket Scientist!
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Henriques)
and 2516 anonymous users online.
|
|
|