本帖最后由 terse 于 2023-12-1 19:39 编辑
直接删除节点呢 修改把文件名传进去- @set @n=0;/* & echo off & cscript -nologo -e:jscript "%~0" "appxmanifest.xml" "appxmanifest2.xml"&pause & exit */
- var xml = new ActiveXObject("Msxml2.DOMDocument");
- xml.load(WScript.Arguments(0));
- var node = xml.selectSingleNode("//Application[@Id='WindowsBackup' and @Executable='WindowsBackupClient.exe' and @EntryPoint='WindowsBackup.App']");
- if (node != null) {
- node.parentNode.removeChild(node);
- }
- xml.save(WScript.Arguments(1));
复制代码
|