adagost,
We (Les, Rad, Jens, etc.) could throw a script together and post it up for you to take away. In other words, use resources and put together information. Put another way, we want you to learn.
When we say to RTFM, use FAQ UDF Sections.. Utilize Search features to look for specific things:
Registry
Replace
String
Read
Write
I think one of the most important exercises I went through was to dig into the sample scripts that Ruud was so kind to provide. Start with the TEST.KIX..
Before we get off too much of a tangent here...
Let's "boil the broth off of the soup" and see what we have?
Like I was taught in Management, we need to break things into bite-sized chunks.
(1) What is the goal?
Read in a Registry string, change it and replace.
(2) How do we do this?
We need to replace a string and add it back in to the registry.
(3) Testing and execution.
- What is our environment? NT/W9x, Kixtart version, etc.
- Will the users have rights to do this?
Does it break? Do we need some SLEEP statments?
So, taking this we can put together the following..
- Reading a value from the Registry, how do we do that?
READVALUE - Wait.. We need to test to see if the value is what need otherwise RETURN.. Use a string Function like INSTR to do so.
- How do use that for our operations? Assign it a value?
- Great, we now have a value we read in from the registry.. Now what? Let's use the Replace UDF listed..
- With the resulting variable from the Replace UDF, write the value back to the registry.
Does this help lay out the gameplan a bit better?
Kent