[Windows registry] Character with special meaning

Discussion in 'other software & services' started by m00nbl00d, Dec 19, 2011.

Thread Status:
Not open for further replies.
  1. m00nbl00d

    m00nbl00d Registered Member

    Joined:
    Jan 4, 2009
    Posts:
    6,623
    I know that & has a special meaning in Windows registry, as it will turn the following character into a hotkey.

    I'm trying to create a registry entry REG_SZ MUIVerb, where I want & to be displayed as a literal character.

    Considering that \ also has a special meaning (it's an escape character), I tried adding \& and &\, but the character that comes after & still becomes a hotkey.

    I've been trying to find info on how to do it for the last couple days, including in MSDN library, but can't find anything. Maybe I'm not looking at the right places. :doubt:

    I'm wondering if by writing the name I want in a file, where I would include & in the string, if there's someway to link it to that MUIVerb entry? Or, if there's some other way of having it (&) in the registry, as a MUIVerb entry, and still make it a literal character?

    Does anyone have got any tips or is it simply impossible to take away the special meaning from & in the registry?


    Thank you

    -edit-

    Just to clarify it a bit more, I want to add a context menu to the Desktop that will display a given name that includes & in it. But, considering that & has a special meaning, it will turn the next character in the name into a hotkey. I want to take away this special meaning, making & a literal character.
     
  2. MrBrian

    MrBrian Registered Member

    Joined:
    Feb 24, 2008
    Posts:
    6,032
    Location:
    USA
  3. m00nbl00d

    m00nbl00d Registered Member

    Joined:
    Jan 4, 2009
    Posts:
    6,623
  4. MrBrian

    MrBrian Registered Member

    Joined:
    Feb 24, 2008
    Posts:
    6,032
    Location:
    USA
    You're welcome :).
     
Loading...
Thread Status:
Not open for further replies.