Tech Off Post

Single Post Permalink

View Thread: Set IIsWebDirectory Permissions via WMI in C#
  • User profile image
    jrg

    mrichman wrote:
    Yet another setback I discovered is that to create a Metabase entry for /foo/bar, its parent key /foo must exist.

    Looks like I need to create a recursive method for creating a key if and only if its parent exists (creating the parent key if not there).

    Kill me now please.


    Copyright your problem and solution before it becomes the next Microsoft interview question! Tongue Out

    "Umm, let me think, string path = "some/path"; string [] pathParts = path.Split('/');  recursiveFunction(rootPath, pathParts, 0)..."