Hi All,
Please let us know if we could execute a query to find out no. of subfolder within each foler inside a cabinet.
thanks,
If there are Accepted Answers, those will be shown by default. You can switch to 'All Replies' by selecting the tab below.
found below query to find the list of subfolder
select c.r_object_id, c.object_name, count(f.r_object_id) as folders
from dm_folder c, dm_folder f
where folder('/Temp',descend) and any f.i_folder_id = c.r_object_id
group by c.r_object_id, c.object_name, c.r_link_cnt
select fr.r_folder_path, count(f.object_name) as folders fromdm_folder f,dm_sysobject_r sr,dm_folder_r frwhere cabinet('/yourcabinet', descend)and sr.i_folder_id = fr.r_object_idand f.r_object_id = sr.r_object_id and sr.i_position = -1and fr.i_position = -1group by fr.r_folder_path