DFS Lookups
-
I'm tring to find a way to lookup a particular path in the DFS tree to find where the actual resource from what points to it. I can't seem to find any API calls or objects which deal with this. The simple way is to pipe 'dfscmd.exe /view \\server\dfsshare /batch | grep path_feaure | awk '{print $4}'' and parse that output but it is ugly and I have to install dfscmd, grep and awk on each machine that needs this code. Does anyone know where I can find some way to do lookups in a DFS tree programatically? I know i can use NetShareGetInfo to find out if a path is a DFS root but that's as close as I've come (with a hour of google and msdn searches). Any points in a relevant direction would be extremely helpful.
-
I'm tring to find a way to lookup a particular path in the DFS tree to find where the actual resource from what points to it. I can't seem to find any API calls or objects which deal with this. The simple way is to pipe 'dfscmd.exe /view \\server\dfsshare /batch | grep path_feaure | awk '{print $4}'' and parse that output but it is ugly and I have to install dfscmd, grep and awk on each machine that needs this code. Does anyone know where I can find some way to do lookups in a DFS tree programatically? I know i can use NetShareGetInfo to find out if a path is a DFS root but that's as close as I've come (with a hour of google and msdn searches). Any points in a relevant direction would be extremely helpful.
Sorry this post is from me and by DFS tree I mean (D)istributed (F)ile (S)ystem [not Depth First Search]. I forgot to login before I posted the message.:~ My apologies. Sean