[C#] C#共享文件夹的代码片段 →→→→→进入此内容的聊天室

来自 , 2019-06-23, 写在 C#, 查看 105 次.
URL http://www.code666.cn/view/52aa16fc
  1. System.Diagnostics.Process p = new System.Diagnostics.Process();
  2.             p.StartInfo.FileName = "cmd";
  3.             p.StartInfo.Arguments = " /c net share " + shareName + "=" + "\"" + folderName +"\"";
  4.             p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
  5.             p.StartInfo.CreateNoWindow = true;
  6.             p.StartInfo.UseShellExecute = false;
  7.             p.StartInfo.RedirectStandardOutput = true;              
  8.             p.Start();
  9.             p.WaitForExit();
  10. //csharp/4389

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

这儿你可以回复上面这条便签

captcha