Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RegRead Method help
#1
Solved: 10 Years, 9 Months ago Question 
Hi,

im trying to get the value off this reg path:
HKLM\SOFTWARE\ASDF_GHJKL\Data-Dir\system
via vb

Code:
Dim WshShell, bkey
  set WshShell = WScript.CreateObject("WScript.Shell")
    bKey = WshShell.RegRead("HKLM\SOFTWARE\ASDF_GHJKL\Data-Dir\system")

@the line 2 i get an error.
object requiered `Wscript´


Someone has a solution?

best regards,
Konstantin
Reply
#2
Solved: 10 Years, 9 Months ago
Hi,
ignore WScript...Try this code

Code:
set WshShell = CreateObject("WScript.Shell")
bKey = WshShell.RegRead("HKLM\SOFTWARE\ASDF_GHJKL\Data-Dir\system")
Reply
#3
Solved: 10 Years, 9 Months ago
thank you for your answer, helped me a lot

im getting this error, but the path is right
Reply
#4
Solved: 10 Years, 9 Months ago
Code:
set WshShell = CreateObject("WScript.Shell")
KeyVal= WshShell.regread("HKEY_LOCAL_MACHINE\SOFTWARE\******-*****\DataDir\System")
Problem solved
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)