New answers tagged


I don't know if it is exactly usable in your situation, but maybe it helps: In PowerShell you can use the GetPath() method and count the semicolons. Example: Root      \- Child GetPath() used on 'Child' returns 'Root;Child' - so the nesting level is the count of the ';'. Additionally there is the 'isRoot' property to quickly ...

Top 50 recent answers are included