Expected end of statement in VBScript -
i new vbscript. writing script read registry. have declared variable browser shows error "expected end of statement"
this function :
<script type="text/vbscript"> function sayhello() msgbox "hello" hkey_local_machine = &h80000002 uninstallregkey = "software\\microsoft\\windows\\currentversion\\uninstall\\"; stdregpro = "winmgmts:{impersonationlevel=impersonate}!\\\\.\\root\\default:stdregprov"; set objreg=getobject(stdregpro) objreg.enumkey hkey_local_machine, uninstallregkey, arrsubkeys msgbox arrsubkeys end function </script>
it gives error @ declaring variable uninstallregkey
@ end of statement (near semicolon)
am doing wrong?
no ;
statement delimiter in vbscript!
vbscript
No comments:
Post a Comment