.Net
Setup Factory 点击uninstall.exe Invalid start mode : archive filename
点击uninstall.exe不生效,主要是因为没带参数 方法:生成一个快捷方式,添加命令Shell.CreateShortcut("%AppFolder%", "卸载 NetManage.exe", "%AppFolder%\\uninstall.exe", "/U:.\\Uninstall\\uninstall.xml", "%AppFolder%", "%AppFolder%\\unins
拖拽文件夹到文本框TextBox
private void textBox1_DragDrop(object sender, DragEventArgs e) { textBox1.Text = ((System.Ar
去掉XML中的处理指令
XDocument xDoc = XDocument.Load(xmlFile); var xpis = xDoc.DescendantNodes().OfType<XProcessingInstruction>(); xpis.Remove();
C# 直接打开文件(默认程序)
File.WriteAllText("log.txt", log); Process.Start("log.txt");