Next Topic

Previous Topic

Book Contents

hasRegistryKey() / has64BitRegistryKey()

Warning: Certain registry locations require 64-Bit Commands for 64-bit Windows machines.

Tests for the existence of a registry key. hasRegistryKey() differs from getRegistryValue() since it can check for a directory level registry entry that only contains more registry keys (no values).

Example - Core.1 Windows Procedures.Desktops.Maintenance.Common Maintenance Tasks.Disk Cleanup.Windows Disk Cleanup

If hasRegistryKey("HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\explorer\VolumeCaches\Compress Old Files\") Exists