Forum Discussion
AlexanderM
14 years agoStaff
Hi Mohanakshi,
You need to obtain the Section object corresponding to the parent folder and then call the Section.SubSectionExists method to verify whether it contains a subfolder with the given name.
Suppose that you need to verify the HKEY_CURRENT_USER\ParentSectionPath\NeededSubSection key, then the script would be:
function TestSubSection()
{
if (Storages.Registry("ParentSectionPath", HKEY_CURRENT_USER).SubSectionExists("NeededSubSection"))
Log.Message("The registry folder exists");
else
Log.Warning("The specified registry folder does not exist.");
}
Related Content
- 10 years ago
- 10 months ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago