| http://www.MianFeiLunWen.com 免费论文网 曹庆旭 2008-2-25 23:20:46 |
| ------------------------------------------[发送]-[打印]-[投稿]-[VIP]--------------- |
private void Form1_Load(object sender, System.EventArgs e) { System.Diagnostics.Process[] ps = System.Diagnostics.Process.GetProcesses(); foreach(System.Diagnostics.Process p in ps) { //MessageBox.Show(p.ProcessName); if(p.ProcessName.ToLower()=="customerapplication") { p.Kill(); break; } } XmlDocument doc = new XmlDocument(); doc.Load(Application.StartupPath + @"\update.xml"); XmlElement root = doc.DocumentElement; XmlNode updateNode = root.SelectSingleNode("filelist"); string path = updateNode.Attributes["sourcepath"].Value; int count = int.Parse(updateNode.Attributes["count"].Value); for(int i=0;i= updateNode.ChildNodes[i]; string fileName = itemNode.Attributes["name"].Value; FileInfo fi = new FileInfo(fileName); fi.Delete(); //File.Delete(Application.StartupPath + @"\" + fileName);本篇论文共 6页,当前在第 4页 1 2 3 4 5 6
|
| -------------------------------------------------------[发送]-[打印]-[投稿]-[VIP]-- |
|
|