C#通过用户名与密码访问共享目录 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; namespace FileTools { public class NetworkShareConnect { #region WNetUseConnection枚举参数 //dwScope const int RE…