c#命令行在iis7上建立虚拟web应用程序
笔记:
ProcessStartInfo pi = new ProcessStartInfo();
pi.FileName = "c:\\windows\\system32\\inetsrv\\appcmd.exe";
pi.Arguments = string.Format("add app /site.name:test /path:/test2 /physicalpath:g:\\bbb");
pi.CreateNoWindow = false;
Process.Start(pi);