我正在寻找一种方法,我可以从我的网络上的电脑上获取IP,然后扫描它以查找共享文件夹。 我知道如何找到那些不是问题的ip,但是可以在不知道共享数据的实际名称的情况下搜索每个ip的共享文件夹吗?
我在考虑类似于c#的东西,你可以从所选目录中获取所有可访问的文件。
哦,如果可能的话,可以用C ++完成吗?
I'm looking to find a way where I can have an ip from a pc on my network and then scan it for shared folders. I know how to find those ip's that isn't the problem but is it possible to search for shared folders per ip without knowing the actual name of that shared data?
I was thinking of something resembling c# where you can get all accessible files from a selected directory.
Oh, if possible, can this be done in C++?
最满意答案
您可能需要使用NetShareEnum ( http://msdn.microsoft.com/en-us/library/windows/desktop/bb525387%28v=vs.85%29.aspx )。 请参阅页面上的示例。
You might need to use NetShareEnum (http://msdn.microsoft.com/en-us/library/windows/desktop/bb525387%28v=vs.85%29.aspx). See the example on the page.
更多推荐
发布评论