Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

How to use RegQuery for value with \name

May
603
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.
 
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:


> 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.
>
>
>
>
>
>
 
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,
>
> 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:
>
>
>
> ---Quote---
>> 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
> ---End Quote---
> value?
>
>
> ---Quote---
>>
>> 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.
>>
>>
>>
>>
>>
>>
> ---End Quote---
>
>
>
>



--
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.
 

Similar threads

Back
Top