开发Visual Studio应用程序以将用户连接到文件服务器 [英] Developing Visual studio apps to connect users to a file server

查看:83
本文介绍了开发Visual Studio应用程序以将用户连接到文件服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我刚开始使用Visual Studio 2015尝试创建发送给我们用户的小型应用程序,以帮助他们连接到Department FileServer.文件服务器名称为psych-fs1,文件夹为share" psych-fs1 \ share"

I just start using Visual Studio 2015 trying to create small apps sending to our users assist them connecting to Department FileServer. Fileserver name is psych-fs1 and folder is share"psych-fs1\share"

这是我到目前为止创建的代码,我想从愿意帮助我们的任何人那里获得一些帮助.

Here is the code that I created so far and I like to get some help from anyone who is willing to help us .

Form1类
   私有子Label1_Click(作为对象发送,作为EventArgs发送)处理Label1.Click

   结束子

   私有子Form1_Load(作为对象发送,作为EventArgs发送)处理MyBase.Load

   结束子

   私有子Button1_Click(作为对象发送,作为EventArgs发送)处理Button1.Click

       Shell("Net use K://psych-fs1")


   结束子
结束班

Class Form1
    Private Sub Label1_Click(sender As Object, e As EventArgs) Handles Label1.Click

    End Sub

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

    End Sub

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

        Shell("Net use K: //psych-fs1")


    End Sub
End Class

//////////////////////////////

///////////////////////////////

感谢您的帮助.

阿比

EK斯坦福大学

推荐答案

我不太了解您要如何使用该代码或该代码的要求该应用程序将会.

I don't really understand what you are attempting to do with that code or what the requirement of the app will be.

如果文件服务器管理员已为要使用的共享设置了适当的特权,我想也许是由匿名组组成的,那么您希望应用程序做什么?

If the file server admin has set appropriate privileges for the share to be used, I guess by anonymous group perhaps, then what is it you want your app to do?

如果您希望您的应用以编程方式映射网络共享,则此线程中的代码

If you want your app to map the network share programmatically then the code in this thread Mapping a Network Drive in vb.Net can be used.

除了要以某种方式帮助用户连接到部门文件服务器之外,您还没有足够的了解就知道您希望应用程序执行什么操作.

You don't explain enough to know what it is you want your app to do other than assisting users in some way to connect to a department file server. Which maybe that means for their entire PC or just for the app.


这篇关于开发Visual Studio应用程序以将用户连接到文件服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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