|
lixin12345
初级用户
 
积分 27
发帖 13
注册 2008-6-21
状态 离线
|
『楼 主』:
[已解决]请问如何替换受系统保护的文件,谢谢!
使用 LLM 解释/回答一下
我是新来的,对DOS批处理还真不懂!恳请各位帮忙!
就是XP在安装快结束或已装好,我想用批处理来替换OEM的四个文件和两个DLL文件。请问应该如何来实现,谢谢!
Last edited by lixin12345 on 2008-6-22 at 10:07 PM ]
I'm new here and really don't understand DOS batch processing! I humbly ask for everyone's help!
That is, when XP is about to finish installing or has been installed, I want to use a batch process to replace the four OEM files and two DLL files. Please tell me how to achieve this, thank you!
Last edited by lixin12345 on 2008-6-22 at 10:07 PM ]
|
|
2008-6-21 13:10 |
|
|
quya
高级用户
    五星老土
积分 558
发帖 172
注册 2003-2-9 来自 江苏
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
|

我怎么找不到一个比我注册日期早的人? 难道我是传说中的超级管理员? 其实我只是个潜水冠军而已. |
|
2008-6-21 14:37 |
|
|
lixin12345
初级用户
 
积分 27
发帖 13
注册 2008-6-21
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
我是请高手来解决我的问题啊,哪能研究出你的盘!不过你的盘看样子做的不错!
要研究你盘还要下来那么大的一个ISO,唉!还是不下了!
I'm asking experts to solve my problem. How can I research your disk! But your disk looks well-made! To research your disk, I still need to download such a big ISO. Oh, forget it! I won't download it.
|
|
2008-6-21 16:54 |
|
|
quya
高级用户
    五星老土
积分 558
发帖 172
注册 2003-2-9 来自 江苏
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
那么你为什么要替换这几个文件呢? 纳闷。
这几个文件可以替换的, 但dll 2个文件必须在安全模式下替换。
安装到最后替换,大多数情况下系统就进不去了。因为不能轻易替换这几个文件。
Then why do you want to replace these few files? Confused.
These few files can be replaced, but the two dll files must be replaced in safe mode.
Replace them at the end of the installation, and most of the time the system won't be able to boot. Because these few files can't be replaced easily.
|

我怎么找不到一个比我注册日期早的人? 难道我是传说中的超级管理员? 其实我只是个潜水冠军而已. |
|
2008-6-21 17:57 |
|
|
lixin12345
初级用户
 
积分 27
发帖 13
注册 2008-6-21
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
手工我知道怎么来替换的,而且已经成功了的!我现在想用一个批处理来达到同样的效果!但我对批处理真的不懂,所以才来请教的啊。
I know how to replace it manually, and it has been successfully done! Now I want to achieve the same effect with a batch script! But I really don't understand batch processing, so I'm asking for help.
|
|
2008-6-21 19:29 |
|
|
quya
高级用户
    五星老土
积分 558
发帖 172
注册 2003-2-9 来自 江苏
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
那我贴一个以前我做的给你参考
@ECHO OFF
TITLE 修改VOL版Windows XP成OEM版----瞿亚设计
REM 修改OEMDIR值可以改成其他的OEM版本
set OEMDIR=\WXPOEM\IBM
if not defined SAFEBOOT_OPTION ECHO 请进入安全模式运行此程序!&GOTO END
ECHO 免责声明:您应该对使用本程序的结果自行承担风险。&ECHO.
ECHO 此批处理文件将把VOL版的XP改成IBM OEM 版本
ECHO 警告!必须修改对应BIOS的特征码,否则无法激活!
ECHO 如想改成其他品牌的OEM版本,请修改本文件再运行 &ECHO.
:answer
set/p cont=继续安装 (y/n)?
if %cont%==y goto setup
if %cont%==Y goto setup
if %cont%==n goto end
if %cont%==N goto end
goto answer
:setup
ECHO. &IF NOT EXIST %OEMDIR%\OEMBIOS.CAT GOTO ERROREND
REM 更新OEM文件到DllCache和SYSTEM32目录 共4个文件
attrib -a -s -r -h %SYSTEMROOT%\System32\Dllcache\oembios.cat
attrib -a -s -r -h %SYSTEMROOT%\System32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\oembios.cat
COPY %OEMDIR%\*.* %SYSTEMROOT%\System32\Dllcache /Y>nul
COPY %OEMDIR%\OEMBIOS.BIN %SYSTEMROOT%\System32 /Y>nul
COPY %OEMDIR%\OEMBIOS.DAT %SYSTEMROOT%\System32 /Y>nul
COPY %OEMDIR%\OEMBIOS.SIG %SYSTEMROOT%\System32 /Y>nul
COPY %OEMDIR%\OEMBIOS.CAT %SYSTEMROOT%\System32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE} /Y>nul
COPY %OEMDIR%\OEMINFO\*.* %SYSTEMROOT%\System32 /Y>nul 2>nul
REM 更新激活验证文件(Dpcdll.dll、Pidgen.dll)
EXPAND -R Dpcdll.dl_ %SYSTEMROOT%\System32\Dllcache>nul
EXPAND -R Dpcdll.dl_ %SYSTEMROOT%\System32>nul
EXPAND -R Pidgen.dl_ %SYSTEMROOT%\System32\Dllcache>nul
EXPAND -R Pidgen.dl_ %SYSTEMROOT%\System32>nul
REM 导入OEM注册表文件
attrib +a +s +r +h %SYSTEMROOT%\System32\Dllcache\oembios.cat
attrib +a +s +r +h %SYSTEMROOT%\System32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\oembios.cat
REGEDIT -S OEM.REG
ECHO 导入完成,请重新启动计算机
GOTO END
:ERROREND
ECHO 未发现OEM版本相关文件,系统未作改动
:END
PAUSE
注意将OEM.REG,PIDGEN.DL_,DPCDLL.DL_ 放在上述批处理的同一个目录。
OEM.REG内容如下:
Windows Registry Editor Version 5.00
"ProductId"="55661-OEM-0011964-47775"
"ProductId"="55661-OEM-0011964-47775"
"DigitalProductId"=hex:a4,00,00,00,03,00,00,00,35,35,36,36,31,2d,4f,45,4d,2d,\
30,30,31,31,39,36,34,2d,34,37,37,37,35,00,2d,00,00,00,41,32,32,2d,30,30,30,\
30,31,00,00,00,00,00,00,00,3e,5c,43,0e,f2,25,4c,6e,07,bd,af,e0,91,6f,05,00,\
00,00,00,00,3d,1f,f1,40,99,a3,02,00,02,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,34,33,34,30,30,00,00,00,00,00,00,00,96,16,\
00,00,c2,b7,1a,38,00,01,00,00,8c,01,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,50,91,fe,62
"LicenseInfo"=hex:33,43,46,34,7e,d9,1f,26,2d,7c,f4,45,be,b3,26,ef,05,4b,17,21,\
10,86,9c,ff,5e,4c,06,86,00,cd,09,9d,f4,58,c5,d8,21,ed,11,f3,42,66,af,35,e5,\
99,1e,95,7d,58,26,8e,63,ce,68,d5
Then I'll post one I made before for your reference
@ECHO OFF
TITLE Modify VOL Edition Windows XP to OEM Edition----Designed by Qu Ya
REM Modifying the OEMDIR value can change to other OEM versions
set OEMDIR=\WXPOEM\IBM
if not defined SAFEBOOT_OPTION ECHO Please run this program in Safe Mode!&GOTO END
ECHO Disclaimer: You should bear the risk of using this program by yourself. &ECHO.
ECHO This batch file will change the VOL edition of XP to the IBM OEM version
ECHO Warning! The feature code corresponding to the BIOS must be modified, otherwise it cannot be activated!
ECHO If you want to change to the OEM version of other brands, please modify this file and then run &ECHO.
:answer
set/p cont=Continue installation (y/n)?
if %cont%==y goto setup
if %cont%==Y goto setup
if %cont%==n goto end
if %cont%==N goto end
goto answer
:setup
ECHO. &IF NOT EXIST %OEMDIR%\OEMBIOS.CAT GOTO ERROREND
REM Update OEM files to DllCache and SYSTEM32 directories, a total of 4 files
attrib -a -s -r -h %SYSTEMROOT%\System32\Dllcache\oembios.cat
attrib -a -s -r -h %SYSTEMROOT%\System32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\oembios.cat
COPY %OEMDIR%\*.* %SYSTEMROOT%\System32\Dllcache /Y>nul
COPY %OEMDIR%\OEMBIOS.BIN %SYSTEMROOT%\System32 /Y>nul
COPY %OEMDIR%\OEMBIOS.DAT %SYSTEMROOT%\System32 /Y>nul
COPY %OEMDIR%\OEMBIOS.SIG %SYSTEMROOT%\System32 /Y>nul
COPY %OEMDIR%\OEMBIOS.CAT %SYSTEMROOT%\System32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE} /Y>nul
COPY %OEMDIR%\OEMINFO\*.* %SYSTEMROOT%\System32 /Y>nul 2>nul
REM Update activation verification files (Dpcdll.dll, Pidgen.dll)
EXPAND -R Dpcdll.dl_ %SYSTEMROOT%\System32\Dllcache>nul
EXPAND -R Dpcdll.dl_ %SYSTEMROOT%\System32>nul
EXPAND -R Pidgen.dl_ %SYSTEMROOT%\System32\Dllcache>nul
EXPAND -R Pidgen.dl_ %SYSTEMROOT%\System32>nul
REM Import OEM registry file
attrib +a +s +r +h %SYSTEMROOT%\System32\Dllcache\oembios.cat
attrib +a +s +r +h %SYSTEMROOT%\System32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\oembios.cat
REGEDIT -S OEM.REG
ECHO Import completed, please restart the computer
GOTO END
:ERROREND
ECHO No OEM version related files found, the system has not been modified
:END
PAUSE
Note that place OEM.REG, PIDGEN.DL_, DPCDLL.DL_ in the same directory as the above batch file.
The content of OEM.REG is as follows:
Windows Registry Editor Version 5.00
"ProductId"="55661-OEM-0011964-47775"
"ProductId"="55661-OEM-0011964-47775"
"DigitalProductId"=hex:a4,00,00,00,03,00,00,00,35,35,36,36,31,2d,4f,45,4d,2d,\
30,30,31,31,39,36,34,2d,34,37,37,37,35,00,2d,00,00,00,41,32,32,2d,30,30,30,\
30,31,00,00,00,00,00,00,00,3e,5c,43,0e,f2,25,4c,6e,07,bd,af,e0,91,6f,05,00,\
00,00,00,00,3d,1f,f1,40,99,a3,02,00,02,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,34,33,34,30,30,00,00,00,00,00,00,00,96,16,\
00,00,c2,b7,1a,38,00,01,00,00,8c,01,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,50,91,fe,62
"LicenseInfo"=hex:33,43,46,34,7e,d9,1f,26,2d,7c,f4,45,be,b3,26,ef,05,4b,17,21,\
10,86,9c,ff,5e,4c,06,86,00,cd,09,9d,f4,58,c5,d8,21,ed,11,f3,42,66,af,35,e5,\
99,1e,95,7d,58,26,8e,63,ce,68,d5
|

我怎么找不到一个比我注册日期早的人? 难道我是传说中的超级管理员? 其实我只是个潜水冠军而已. |
|
2008-6-21 20:55 |
|
|
lixin12345
初级用户
 
积分 27
发帖 13
注册 2008-6-21
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
首先谢谢您的帮助!看了半天有点明白了这个批处理的运行过程:
1、设置要替换文件的目录和文件;
2、必须在安全模式下运行。
3、导入注册表文件(其实是一个XP的序列号,不知道是不是这样?)。
然后我的意思是这样的:
1、能不能不从安全模式下替换(重启到安全模式我个人认为一是慢二是不爽);
2、OEM.REG可以不导入的,应安装时已输入了序列号(是不是还需导入吗?)。
3、有一个DLL文件是没压缩的,还要自己给他压缩吗?
不知道有没有其他更好的办法(这个问题有点天真,呵呵)
比如说获得一个权限直接修改?
总之谢谢您了!
Last edited by lixin12345 on 2008-6-21 at 09:43 PM ]
First of all, thank you for your help! After looking at it for a long time, I somewhat understand the running process of this batch processing:
1. Set the directory and files of the files to be replaced;
2. It must be run in safe mode.
3. Import the registry file (actually, it is a serial number for XP, I don't know if it is like this?).
Then what I mean is like this:
1. Can I not replace it from safe mode (personally, I think booting to safe mode is slow and not enjoyable);
2. The OEM.REG can not be imported, because the serial number has been entered during installation (do I still need to import it?);
3. There is a DLL file that is not compressed, do I still need to compress it myself?
I don't know if there are other better ways (this question is a bit naive, hehe)
For example, get a permission to directly modify?
In short, thank you!
Last edited by lixin12345 on 2008-6-21 at 09:43 PM ]
|
|
2008-6-21 21:40 |
|
|
quya
高级用户
    五星老土
积分 558
发帖 172
注册 2003-2-9 来自 江苏
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
1. 正确
2. 必须
3. 其实是一个XP的OEM序列号
既然你在安装的时候已经输入了序列号,那么这个序列号已经决定了你需要什么样的6个文件,你要替换它们干什么??!!难道要搞死它?
DLL文件可以是没压缩的。但会出现个错误信息,稍微修改下可以屏蔽错误信息。
比如 EXPAND -R Dpcdll.dl_ %SYSTEMROOT%\System32\Dllcache>nul 2>nul
1. Correct
2. Must
3. Actually, it's an OEM serial number of XP
Since you have entered the serial number during installation, this serial number has already determined which 6 files you need. Why do you want to replace them??! Do you want to mess it up?
The DLL file can be uncompressed. But an error message will appear, which can be shielded by making a slight modification.
For example, EXPAND -R Dpcdll.dl_ %SYSTEMROOT%\System32\Dllcache>nul 2>nul
|

我怎么找不到一个比我注册日期早的人? 难道我是传说中的超级管理员? 其实我只是个潜水冠军而已. |
|
2008-6-21 21:48 |
|
|
lixin12345
初级用户
 
积分 27
发帖 13
注册 2008-6-21
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
搞死它?不明白您的意思?
打个比方(可能不是很好):先前用PRO安装时却输了个某OEM的序列号,但没有激活,是不是可以这样了?
我只不过提出一个这样的问题看能不能解决而已,其他暂且不论它了。
唉!其实我的真实意思是这样的:
就是说能不能用一个批处理来获得一个足够大的权限来替换一个受系统所保护的文件,一方面能顺利替换,另一方面不会提示你插入光盘之类的提示而已啊!
Last edited by lixin12345 on 2008-6-21 at 10:04 PM ]
Kill it? I don't understand what you mean?
For example (maybe not very good): Previously, when installing with PRO, I entered a certain OEM's serial number but didn't activate it. Is that possible like this?
I just raised such a question to see if it can be solved, and other things are not considered for the time being.
Alas! Actually, my real meaning is like this:
I mean, can a batch script be used to obtain sufficient privileges to replace a system-protected file, so that it can be replaced smoothly and there will be no prompts to insert a CD or something like that?
Last edited by lixin12345 on 2008-6-21 at 10:04 PM ]
|
|
2008-6-21 21:54 |
|
|
quya
高级用户
    五星老土
积分 558
发帖 172
注册 2003-2-9 来自 江苏
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
Originally posted by lixin12345 at 2008-6-21 01:10 PM:
我是新来的,对DOS批处理还真不懂!恳请各位帮忙!
就是XP在安装快结束或已装好,我想用批处理来替换OEM的四个文件和两个DLL文件。请问应该如何来实现,谢谢!
搞死它?不明白您的意思?
打个比方(可能不是很好):先前用PRO安装时却输了个某OEM的序列号,但没有激活,是不是可以这样了?
我只不过提出一个这样的问题看能不能解决而已,其他暂且不论它了。
唉!其实我的真实意思是这样的:
就是说能不能用一个批处理来获得一个足够大的权限来替换一个受系统所保护的文件,一方面能顺利替换,另一方面不会提示你插入光盘之类的提示而已啊!
你的比方很不恰当,因为输错序列号无法继续安装的。比如本来是VOL版的输了个OEM序列号。
你的真实意思在顶楼就说了,很明显是想替换OEM的6个文件。怎么到最后变成其他文件了。
所以我确实怀疑你真实的动机。要想人家帮助你,请真心对待人家。谢谢。
Last edited by quya on 2008-6-21 at 10:27 PM ]
Originally posted by lixin12345 at 2008-6-21 01:10 PM:
I'm new here and really don't understand DOS batch processing! I sincerely ask for everyone's help!
That is, when XP is about to finish installing or has been installed, I want to use a batch processing to replace the four OEM files and two DLL files. How should I achieve this? Thank you!
Kill it? I don't understand what you mean?
For example (maybe not very good): When installing with PRO, I entered an OEM serial number by mistake but didn't activate it. Is it possible like this?
I just raised such a question to see if it can be solved, and other things are not discussed for the time being.
Alas! Actually, my real meaning is like this:
That is, can a batch processing be used to obtain a sufficiently large permission to replace a file protected by the system, on the one hand, it can be replaced smoothly, and on the other hand, there will be no prompts like inserting a CD, etc.!
Your analogy is very inappropriate because entering the wrong serial number cannot continue the installation. For example, if you entered an OEM serial number for a VOL version.
Your real meaning was said in the top floor, which is obviously to replace 6 OEM files. How did it become other files in the end.
So I really suspect your real motivation. If you want people to help you, please treat them sincerely. Thank you.
Last edited by quya on 2008-6-21 at 10:27 PM ]
|

我怎么找不到一个比我注册日期早的人? 难道我是传说中的超级管理员? 其实我只是个潜水冠军而已. |
|
2008-6-21 22:26 |
|
|
lixin12345
初级用户
 
积分 27
发帖 13
注册 2008-6-21
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
唉!我怎么不真心了?我就是没表达清楚我的意思而已,我说了不要在安全模式下替换,被您说的越糊涂了(其实在安全模式下替换也不需要这么复杂的批处理的),我说过了,在安全模式下我会替换的!我说过了比方是不好!
因为我要的结果没有,所以进一步说明而已,也用着这样吧!不愿帮无所谓的!
好象没有对您怎么样吧!唉!算了!有高手愿意帮就帮,不愿意帮也无所谓的,总是有办法的,实在搞不定那也没办法,只好不做了!如果说有对您不真心的话,在此说一声对不起了!再一次谢谢您 了!
我要的正常情况下能不能用批处理方式替换受系统保护的文件。
Alas! Why do you say I'm not sincere? I just didn't express my meaning clearly. I said don't replace in safe mode, but I got more confused by what you said (actually, replacing in safe mode doesn't need such a complicated batch script). I said I would replace in safe mode! I said the analogy was not good!
Because there's no result I want, so I just explain further, and let it be like this! It doesn't matter if you don't want to help!
It seems I didn't do anything to you! Alright! Forget it! If there are experts willing to help, they can; if not, it's also okay. There's always a way. If it really can't be done, then there's no way, and I'll just not do it! If I was not sincere to you, I'm sorry here! Thank you again!
Can I replace system-protected files using batch scripting in normal circumstances?
|
|
2008-6-21 22:46 |
|
|
quya
高级用户
    五星老土
积分 558
发帖 172
注册 2003-2-9 来自 江苏
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
就我目前的水平,我再也无法帮你了。因为我知道批处理不是万能的。
不过这儿的高手很多, 但愿有人能帮上你忙。
According to my current level, I can no longer help you. Because I know batch processing isn't all-powerful.
But there are many experts here, I hope someone can help you.
|

我怎么找不到一个比我注册日期早的人? 难道我是传说中的超级管理员? 其实我只是个潜水冠军而已. |
|
2008-6-21 23:23 |
|
|
fastslz
铂金会员
       DOS一根葱
积分 5493
发帖 2315
注册 2006-5-1 来自 上海
状态 离线
|
|
2008-6-22 03:50 |
|
|
Climbing
铂金会员
       网络独行侠
积分 6962
发帖 2753
注册 2003-4-16 来自 河北保定
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
我对这个研究不多,在XP环境下,有一个replace.exe命令,是用来替换系统文件的,但不是很好用。
I don't have much research on this. In the XP environment, there is a replace.exe command used to replace system files, but it's not very easy to use.
|

偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
|
|
2008-6-22 08:40 |
|
|
lixin12345
初级用户
 
积分 27
发帖 13
注册 2008-6-21
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
谢谢13楼和14楼的网友!13楼给出的连接是老外的,我已经看过了,太长了,就我的水平也看不懂,呵呵!
14楼的命令倒是没注意过,查一下资料再说,再一次谢谢楼上的两位!
Thanks to the netizens on the 13th and 14th floors! The link provided by the 13th floor is from a foreigner, and I have already seen it. It's too long, and I can't understand it at my level, heh heh! I didn't pay attention to the command on the 14th floor. I'll check the materials later. Thanks again to the two upstairs!
|
|
2008-6-22 08:55 |
|
|