const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set StdOut = WScript.StdOut
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_
strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\New Key"
oReg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath
line 5
char 28
error Expected ')'
code 800A03EE
Source: Microsoft VBscript compilation error
any clues?
Thanks
strComputer = "."
Set StdOut = WScript.StdOut
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_
strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\New Key"
oReg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath
line 5
char 28
error Expected ')'
code 800A03EE
Source: Microsoft VBscript compilation error
any clues?
Thanks
