标题: [求助] 如何用批处理生成一个a.reg文件
[打印本页]
作者: mo6762
时间: 2008-11-14 17:41
标题: [求助] 如何用批处理生成一个a.reg文件
如何在用批处理直接新建一个a.reg的文件,内容为
REGEDIT4
[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Policies\System]
"DisableRegistryTools"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"RestrictRun"=dword:00000000
(不用edit 编辑)可以吗?
那位大侠帮帮我,谢谢!!!
作者: tireless
时间: 2008-11-14 18:06
@echo off
>a.reg echo REGEDIT4
>>a.reg echo [HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Policies\System]
>>a.reg echo "DisableRegistryTools"=dword:00000000
>>a.reg echo [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
>>a.reg echo "RestrictRun"=dword:00000000
或者:
@ more +1 %0 > a.reg & exit /b
REGEDIT4
[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Policies\System]
"DisableRegistryTools"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"RestrictRun"=dword:00000000
[
Last edited by tireless on 2008-11-14 at 18:17 ]