如何在VB.NET中从服务器共享及其文件夹中读取DFS路径 [英] How to read DFS path from server share and its folders in VB.NET

查看:512
本文介绍了如何在VB.NET中从服务器共享及其文件夹中读取DFS路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我是DFS的新手。我读过如何以编程方式确定DFS中的活动UNC路径 [ ^ ]。

我的第一个起点是读取确切服务器位置的DFS路径。

第二步是创建文件夹DFS服务器(物理)并对其应用ACL。

你能帮忙解决这个问题。 (也许你可以帮助第一步,然后第二步)

谢谢。

Hello, I am new to DFS. I read article How to determine active UNC Path in DFS Programatically[^].
My first starting point is to read the DFS path of exact server location.
Second step would be to create folder in DFS server (physical) and apply ACL to it.
Could you please help with the code. (may be you can help with 1st step and then 2nd)
Thank you.

推荐答案

我从另一篇文章得到答案,但是与问题中的代码相同。实际上我们没有从第一级服务器共享获取主服务器路径。例如命名空间服务器S1,它有命名空间Share1
I have got answer from another article but with the same code as in the question. Actually we do not get main server path from server share at 1st level. e.g namespace server S1 and it has namespace Share1


。因此,当您在此级别引用DfsStorageInfo时,它仅显示父服务器和文件夹(此处为Share1
. So when you refer to DfsStorageInfo at this level it shows only parent server and the folder (here the Share1


)。但是,如果您单击此级别之外(向下)的任何快捷方式,DfsStorageInfo将显示服务器的实际位置。
). But if you click on any shortcuts beyond (down) this level, DfsStorageInfo shows actual location of the server.


这篇关于如何在VB.NET中从服务器共享及其文件夹中读取DFS路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆