Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: How to escape space in registry path?

by Lotus1 (Curate)
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?

Replies are listed 'Best First'.
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, good luck searching ... :-(


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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1004777]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2018-06-20 21:22 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (117 votes). Check out past polls.