标题: [注册表类] 【已解决】如何用CMD修改下这个注册表 [打印本页]
作者: 七剑下面条 时间: 2015-8-9 10:07 标题: 【已解决】如何用CMD修改下这个注册表
本帖最后由 七剑下面条 于 2015-8-9 18:45 编辑
这是注册表文件的内容
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation]
"Logo"="c:\\windows\\system32\\oobe\\logo.bmp"
"Manufacturer"="Dell Inc."
"Model"="Inspiron 15R SE 7520"
"SupportHours"="工作日8:30-21:00(周六为工作日).节假日休息"
"SupportPhone"="800-858-2969 400-886-8611"
"SupportURL"="http://supportapj.dell.com/support/index.aspx?c=cn&l=zh&s=gen"
"HelpCustomized"=dword:00000000
如何用CMD修改这个注册表呢
作者: pcl_test 时间: 2015-8-9 11:13
本帖最后由 pcl_test 于 2015-8-9 12:22 编辑
- @echo off
- set "re=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation"
- reg add "%re%" /v Logo /t REG_SZ /d "c:\windows\system32\oobe\logo.bmp" /f
- reg add "%re%" /v Manufacturer /t REG_SZ /d "Dell Inc." /f
- reg add "%re%" /v Model /t REG_SZ /d "Inspiron 15R SE 7520" /f
- reg add "%re%" /v SupportHours /t REG_SZ /d "工作日8:30-21:00(周六为工作日).节假日休息" /f
- reg add "%re%" /v SupportPhone /t REG_SZ /d "800-858-2969 400-886-8611" /f
- reg add "%re%" /v SupportURL /t REG_SZ /d "http://supportapj.dell.com/support/index.aspx?c=cn&l=zh&s=gen" /f
- reg add "%re%" /v HelpCustomized /t REG_DWORD /d 0 /f
- pause
复制代码
作者: aa77dd@163.com 时间: 2015-8-9 12:03
下面代码保存为批处理文件(.bat 或者 .cmd) 运行- ; @echo off
- ; > temp.reg echo Windows Registry Editor Version 5.00
- ; copy temp.reg /b + %~s0 /b temp.reg
- ; regedit /s temp.reg & del temp.reg & echo reg import success & pause & exit
-
-
- [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation]
- "Logo"="c:\\windows\\system32\\oobe\\logo.bmp"
- "Manufacturer"="Dell Inc."
- "Model"="Inspiron 15R SE 7520"
- "SupportHours"="工作日8:30-21:00(周六为工作日).节假日休息"
- "SupportPhone"="800-858-2969 400-886-8611"
- "SupportURL"="http://supportapj.dell.com/support/index.aspx?c=cn&l=zh&s=gen"
- "HelpCustomized"=dword:00000000
复制代码
作者: pcl_test 时间: 2015-8-9 13:38
稍微改下,bat+reg混编,保存为批处理文件运行即可- Windows Registry Editor Version 5.00
- ;cls&@echo off
- ;regedit /s "%~f0"
- ;echo;导入完成&ping -n 2 0 >nul&exit/b
- [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation]
- "Logo"="c:\\windows\\system32\\oobe\\logo.bmp"
- "Manufacturer"="Dell Inc."
- "Model"="Inspiron 15R SE 7520"
- "SupportHours"="工作日8:30-21:00(周六为工作日).节假日休息"
- "SupportPhone"="800-858-2969 400-886-8611"
- "SupportURL"="http://supportapj.dell.com/support/index.aspx?c=cn&l=zh&s=gen"
- "HelpCustomized"=dword:00000000
复制代码
欢迎光临 批处理之家 (http://bbs.bathome.net/) |
Powered by Discuz! 7.2 |