-
Regread Network Key
I am trying to read all the value's and data in a registry key, but one valuet is a network object so the value name is '\\servername\printername'.
So my code looks like this:
wshShell.RegRead ("HKCU\Software\Microsoft\Windows NT\Current Version\Devices\\\servername\printername")
I can read all the other objects in the key except this one because it start with '\\' and messes up regread. I have tried putting the value in quotes, single and double, but with no luck. Any ideas?
-
Re: Regread Network Key
Wouldnt that be the value of the key and not the key name itself?
-
Re: Regread Network Key
Sorry, the key is:
"HKCU\Software\Microsoft\Windows NT\Current Version\Devices"
the String Value Name is '\\BLM\HP_4000M' (ie \\servername\printername)
and the data I wanted to get was 'winspool, Ne00:'
Anyways, figured it out, I had to use the objReg.EnumKey and getStringValue instead of regRead.
-
Re: Regread Network Key
Ah, I see my work is done here then :lol:
Glad you got it working. :)