非要用批处理的话,可以试试这个:- @echo off
- rem 设置"HKEY_LOCAL_MACHINE\SOFTWARE\test"的所有者为:Everyone
- >>test.inf echo.[Version]
- >>test.inf echo.Signature = "$Chicago$"
- >>test.inf echo.
- >>test.inf echo.[Registry Keys]
- >>test.inf echo."MACHINE\Software\TEST", 0, "O:WD"
- secedit /configure /db test.sdb /cfg test.inf /log test.log
- del test.*
- pause
复制代码
|