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? @REGEXIST

Aug
1,917
68
I am using;
Code:
TCC  20.00.21   Windows Vista [Version 6.0.6002]
TCC Build 21   Windows Vista Build 6002  Service Pack 2

When I run the following;
Code:
echo %@REGEXIST["HKCU\Network\O\RemotePath"]
0

According to the help file,
Code:
Returns 1 if the specified key exists, 0 otherwise

So, a 0 means that this key does not exist.

When I run the following;
Code:
echo %@REGQUERY["HKCU\Network\O\RemotePath"]
\\192.168.1.102\DOSBox

I get the value of the key, even though @REGEXIST says it does not exist.

Does anyone else see this type of result, that is, @REGEXIST says that a key does not exist, when it actually does?

Joe
 
The help for @REGEXIST doesn't mention HKCU (which seems odd).

That said, HKCU does work. But @REGEXIST is for keys, not values (and "RemotePath" is a value).
 
Thanks Vince, that makes sense now.

Joe
 
Back
Top