I can list all subkeys and values of an appointed registry key with "reg query" command?. for example: reg query hklm\SOFTWARE\CryptionDirectory /s
now, i want to check the return result of "reg query" command, if some subkeys exist, execute "test1.exe", if no subkeys exist, execute "test2.exe".
how to write the batch file??
thanks.