不知道你是怎么创建的,下面是我的一个例子:
process.StartInfo.FileName = "iisweb.vbs";
//process.StartInfo.Arguments = " /create " + virtualPath + " " + appName + " /b " + pointNo + " /s " + ConfigHelper.ServerHost + " /u " + admin + " /p " + ConfigHelper.ServerPassword;
process.StartInfo.Arguments = " /create " + virtualPath + " " + appName + " /b " + pointNo;
process.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
process.Start();
process.WaitForExit();
process.Close();
请问你解决了吗? 我也碰到了这个问题