quote:
Originally posted by Kriogenic
Ohh thanks theres away to edit registry using scripts?
yes using the
Windows Registry APIs, or other methods like
WMI (Windows Management Instrumentation) or the build-in
Windows Script Host functions.
See various scripts for various methods (although using the Windows APIs is still the most versatile and most powerfull one)...
---------
quote:
Originally posted by Chris4
The following example writes a value called "EnableOpt" in the registry and read it back.
That really isn't the best example for this purpose, since using the build-in registry functions of the Windows Script Host are extremely limited in any thinkable way. Although it shows you "can edit" the registry somewhat, true.
But you can't use this method for something like the OP requested, since they don't support the REG_BINARY type (properly).
---------
Kriogenic, for changing that registry key you need at least:
- use the Windows Registry APIs:
RegCreateKeyExW, RegSetValueExW, RegCloseKey (to set a binary registry key)
RegOpenKeyExW, RegQueryValueExW, RegCloseKey (to read a binary registry key)
- use other Windows APIs (or the build-in JScript methods, although again they are very limited) to check if the new directory does exists
- use other Windows APIs (or the build-in JScript methods, although again they are very limited) to make the new directory
- use Plus! script Interop functions to call the Windows APIs
- use Plus! script Interop functions to make and allocate buffers
In other words, to pull it off in a proper way, you do need some knowledge beyond basic (Plus!) scripting.