| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
wen5
10年前发布

C#共享文件夹的代码片段

System.Diagnostics.Process p = new System.Diagnostics.Process();              p.StartInfo.FileName = "cmd";              p.StartInfo.Arguments = " /c net share " + shareName + "=" + "\"" + folderName +"\"";              p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;              p.StartInfo.CreateNoWindow = true;              p.StartInfo.UseShellExecute = false;              p.StartInfo.RedirectStandardOutput = true;                            p.Start();              p.WaitForExit();