private void btnDefault2_Click(object sender, EventArgs e) { if (MessageBox.Show("还原IIS大约要15秒,适用于连IIS都进不去的用户", "温馨提醒", MessageBoxButtons.YesNo) == DialogResult.Yes) { IIS.Stop(); File.Copy(Comm.MetaBaseFirstFileInfo().FullName, Comm.MetaBasePath(), true); IIS.Start(); Comm.MetaBaseRestore2Install(); MessageBox.Show("成功"); } }