回复 20# yuanyannian
以后像这种与主题无关的问题请重新开贴- Set fso = CreateObject("Scripting.FileSystemObject")
- Set f = fso.OpenTextFile("test.txt", 1, false, -1)
- s = f.ReadAll : f.Close
- s = Replace(s, "HKCU,""", "HKLM,""WB-default\")
- s = Replace(s, "HKLM,""SYSTEM", "HKLM,""WB-setup")
- s = Replace(s, "HKLM,""SOFTWARE", "HKLM,""WB-software")
- s = "[DEFAULTINSTALL]" & vbCrLf & "ADDREG = AddReg" & vbCrLf & vbCrLf & s
- fso.OpenTextFile("test.txt", 2, true, -1).Write s
复制代码
|