Search found 2 matches

by OBr
05 Jun 2008 14:24
Forum: DOS Batch Forum
Topic: Check if key exists
Replies: 2
Views: 8438

dizze wrote:1> redirects stdout
2> redirects stderr which is what the output of reg is in this case.

It works.
Thank you.
by OBr
04 Jun 2008 16:14
Forum: DOS Batch Forum
Topic: Check if key exists
Replies: 2
Views: 8438

Check if key exists

Hallo, I'd like to check whether the key exists. REG QUERY HKEY_CLASSES_ROOT\.php >>null IF ERRORLEVEL 1 ECHO not found This example works, but prints error and I can't hide it. I tried it using the FIND in following script. REG QUERY "HKEY_CLASSES_ROOT" | FIND /i ".php" IF ERROR...