1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to use RegQuery for value with \name

Discussion in 'Support' started by Jim Cook, Jun 1, 2009.

  1. Jim Cook

    Joined:
    May 20, 2008
    Messages:
    605
    Likes Received:
    0
    I'm having a problem with using %@RegQuery because my value has a name
    that begins with a backslash. I have two values in one key named
    "Console" and "\EmuClock"

    This correctly shows the value Console, but how do I show the \EmuClock value?

    echo %@regquery["HKEY_CURRENT_USER\Software\Strobe
    Data\Kestrel\aks100mb.custom\Console"]

    All these return -1:

    echo %@regquery["HKEY_CURRENT_USER\Software\Strobe
    Data\Kestrel\aks100mb.custom\EmuClock"]
    echo %@regquery["HKEY_CURRENT_USER\Software\Strobe
    Data\Kestrel\aks100mb.custom\\EmuClock"]
    echo %@regquery["HKEY_CURRENT_USER\Software\Strobe
    Data\Kestrel\aks100mb.custom\.\EmuClock"]
    echo %@regquery["HKEY_CURRENT_USER\Software\Strobe
    Data\Kestrel\aks100mb.custom\\\EmuClock"]
    echo %@regquery["HKEY_CURRENT_USER\Software\Strobe
    Data\Kestrel\aks100mb.custom\%=\\EmuClock"]
    echo %@regquery["HKEY_CURRENT_USER\Software\Strobe
    Data\Kestrel\aks100mb.custom\%=\EmuClock"]


    --
    Jim Cook
    2009 Saturdays: 4/4, 6/6, 8/8, 10/10, 12/12 and 5/9, 9/5, 7/11, 11/7.
    Next year they're Sunday.
     
  2. samintz

    samintz Scott Mintz

    Joined:
    May 20, 2008
    Messages:
    1,178
    Likes Received:
    11
    Jim,

    Can you query the key using the external application REG.EXE? I don't
    know if it is a parsing limitation in TCC or Win32.

    -Scott

    Jim Cook <> wrote on 06/01/2009 12:05:33 PM:


    value?

     
  3. Jim Cook

    Joined:
    May 20, 2008
    Messages:
    605
    Likes Received:
    0
    I was unable to query the value directly using REG, but could filter
    the output from REG and get what I was looking for. Thanks for the
    pointer.

    My question still remains -- is it possible with TCC directly using @REGQUERY?

    On Tue, Jun 2, 2009 at 7:35 AM, samintz <> wrote:



    --
    Jim Cook
    2009 Saturdays: 4/4, 6/6, 8/8, 10/10, 12/12 and 5/9, 9/5, 7/11, 11/7.
    Next year they're Sunday.
     

Share This Page