Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: How to escape space in registry path?

by Lotus1 (Chaplain)
on Nov 20, 2012 at 18:55 UTC ( #1004777=note: print w/ replies, xml ) Need Help??


in reply to How to escape space in registry path?

After seeing similar problems in your previous question (Read registry error) I'm wondering did you check in regedit that the key exists? What is the OS that you are running this code on?


Comment on Re: How to escape space in registry path?
Re^2: How to escape space in registry path?
by anaconda_wly (Scribe) on Nov 20, 2012 at 21:34 UTC

    Last time I run on Windows7 and can't access the "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft", I forget to mention in that post I had resolved after running the cmd.exe as administrator. That does have difference on Windows7 system. For Win7 I have to run something as administrator, otherwise reading some part in reg may be denied though I do login as administrator.

    This time I'm running on windows 2003 server. I just tried it on Win7 with administrator, but I'm still refused to access the keys under the "Updates", just the same as on win2003.

Re^2: How to escape space in registry path?
by anaconda_wly (Scribe) on Nov 20, 2012 at 21:57 UTC
    I copied the keynames from regedit.exe by right click choosing "Copy Key Name". So I think they should be there. I also refreshed in it. I guess it may still be of some accessibility reason.

      As far as I remember, Windows started "virtualising" filesystem and registry access with Vista / 2003 Server, depending on flags in the EXE header, WOW64, user privileges, and perhaps some other factors. I.e. things are not were you see or search them, some code by Microsoft rewrites the filesystem and registry paths. It's all documented somewhere at microsoft.com, good luck searching ... :-(

      Alexander

      --
      Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1004777]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (12)
As of 2014-09-02 21:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (29 votes), past polls