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

c#
2015-05-02 0 118
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();

遇见资源网 c# C#共享文件夹的代码片段 http://www.ox520.com/12398.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务