遗失的星空

导航

2011年9月19日

【转载】C#中局域网共享目录的访问

摘要: Net Use方案public string ConnectLan() { Process p; p=new Process(); p.StartInfo.FileName="cmd.exe"; // 这里是关键点,不用Shell启动/重定向输入/重定向输出/不显示窗口 p.StartInfo.UseShellExecute = false; p.StartInfo.RedirectStandardInput = true; p.StartInfo.RedirectStandardOutput = true; p.StartInfo.CreateNoWindow = tru 阅读全文

posted @ 2011-09-19 12:47 遗失的星空 阅读(1041) 评论(0) 推荐(0) 编辑