Map network drive programmatically in C# on Windows 10

前端 未结 3 1644
闹比i
闹比i 2021-01-02 02:52

I followed the approache to map a network drive programmatically in the following link: Mapping Network Drive using C#

The drive seems to be connected correctly beca

3条回答
  •  执笔经年
    2021-01-02 03:23

    If you are using @Mario's Approach 2 and want to keep the drive then remove the following line:

    DoProcess("net", "use /D R:");
    

提交回复
热议问题