09-19-2012 07:24 AM
How to access (read/write) windows registry from DIAdem script? Would anyone give me some examples?
Thank you
Solved! Go to Solution.
09-19-2012 12:35 PM
dim wsh : set wsh = CreateObject ("WScript.Shell") dim regvalue : regvalue= wsh.RegRead("HKLM\Software\???")
Check MS documentation on it.
09-20-2012 06:08 AM
The statement (Wscript.Echo "this is a test" ) does not work in the DIAdem script file. I am new to scripting language.
09-20-2012 10:41 AM
Thats right but
dim wsh : set wsh = CreateObject ("WScript.Shell") wsh.Popup "This is a script"
would work.
the wscript object is not available in DIAdem. Its only available if you start a vbs by wscript.exe
12-05-2018 02:18 PM
Just a quick add:
If a * .VBSD file is run by the DataFinder, access to 'HKLM\SOFTWARE\*' does not work, reading keys there returns error.
I tried to use the section 'HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*', and its it works.