访问正确的共享文件夹. [英] To access the proper sharing folder.

查看:93
本文介绍了访问正确的共享文件夹.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面的编码应正确共享文件夹,但不能从远程m/c访问网上邻居".

我将如何解决上述问题???
请以正确的方式提供代码...

我的共享文件夹代码如下:-
------------------------------

The below coding is to be proper share the folder, but not access to the My Network Places from remote m/c.

How will i solve the above problem????
Please supply the code in right way...

My share folder code is below:-
------------------------------

Try
            Dim managementClass As New ManagementClass("Win32_Share")
            Dim inParams As ManagementBaseObject = managementClass.GetMethodParameters("Create")
            inParams("Description") = "My Description"
            inParams("Name") = "My Folder"
            inParams("Path") = "C:\My Folder"
            inParams("Type") = &H0

            Dim outParams As ManagementBaseObject = managementClass.InvokeMethod("Create", inParams, Nothing)
            If Convert.ToUInt32(outParams.Properties("ReturnValue").Value) <> 0 Then
                MessageBox.Show("Unable to share directory.")
            Else
                MessageBox.Show("Shared folder successfully!")
            End If
        Catch ex As Exception
            MessageBox.Show(ex.Message)
        End Try

推荐答案



请在此处
Hi,

Please take a look here


这篇关于访问正确的共享文件夹.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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