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