[REBOL] Accessing the Windows Registry from Rebol/Command
From: dan::rolander::com at: 4-Dec-2000 6:26
I suppose that since no one has replied to any of my inquiries about this
that I might be the only one interested in how to access the Windows
Registry from Rebol/Command. But I'll post this anyway to possibly help out
others some day.
Bo/RT had said that I could access the registry using the Win32 API. But he
didn't provide any specifics and after much struggling with Advapi32.dll
I've given up. There seems to be some trouble either with the routine!
datatypes passed to these particular API structures, or with the way Windows
wants to modify these values and pass them back to Rebol, or perhaps it's
due to my own ignorance of the proper implementation. Either way,
Rebol/Command always crashed on me when I attempted this.
But I haven't had any problems at all with the Rebol/Command shell
interface, so I've decided to take another approach. There is an excellent,
and very small (11 kb), Windows executable from the Cygwin collection
(http://sources.redhat.com/cygwin/) called regtool.exe that allows reading
and writing to and from the registry using the command line. It's very
simple to use Rebol/Command to call this executable to access the registry
and to return the results back to Rebol.
I realize that this type of work defies the cross-platform philosophy of
Rebol, but in order for Rebol to be a practical solution to my everyday
scripting needs, I have to be able to play outside the Rebol "sandbox".
Now if only I could build a Rebol/View GUI front end to a Rebol/Command
script, so that I could access external applications from View. Anybody at
RT working on this?