问题描述
对前一个抱歉。我太早压入了。
如何在C#中映射网络驱动器。我知道你在脚本语言中使用了
MapNetworkDrive,但我不知道如何在C#中做到这一点。
看起来C $似乎不会使用MapNetworkDrive。 br />
Sorry about that previous one. I pressed enter too early.
How does one go about mapping a network drive in C#. i know you use
MapNetworkDrive in scripting languages, but i''m not sure how to do it in C#.
It doesnt seem like C$ would use MapNetworkDrive.
推荐答案
我会使用Process类来运行NET USE命令提示符
命令。
一个有进取心的.NET程序员会把它写成一个类方法,所以
映射网络驱动器的过程很容易在他们可以使用的任何应用程序中实现。
I would use the Process class to run the NET USE command prompt
command.
An enterprising .NET programmer would write it as a class method so
the process of mapping a network drive would be simple to implement in
any application they may work on.
这篇关于在C#中映射网络驱动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!