property Items.FindPath (Path as String) as HITEM

Finds an item given its path.

 TypeDescription 
   Path as String A string expression that indicates the item's path.  
   HITEM A long expression that indicates the item's handle that matches the criteria.  

The FindPath property searches the item on the column SearchColumnIndex.  Use the FullPath property in order to get the item's path. Use the FindItem to search for an item. 

The following sample selects the item based on its path: 

Group.Items.SelectItem(Group.Items.FindPath("Files and Folders\Hidden Files and Folders\Do not show hidden files and folder")) = True

Send comments on this topic.
© 1999-2008 Exontrol Inc, Software. All rights reserved.