摘要:
this.serviceController1 = new ServiceController(); this.serviceController1.ServiceName = "MSFtpsvc"; if (this.serviceController1.Status == ServiceControllerStatus.Running) { try { this.serviceControl... 阅读全文
摘要:
ServiceController mobServiceController4 = new System.ServiceProcess.ServiceController(); mobServiceController4.ServiceName = "MSFtpsvc"; if (mobServiceController4.Status == ServiceControllerStatus.Sto... 阅读全文
摘要:
DirectoryEntry root = new DirectoryEntry("IIS://localhost/W3SVC");// Find unused ID value for new web site int siteID = 1; //得到现有的站点标识 foreach (DirectoryEntry entry in root.Children){ if (entry.Schema... 阅读全文