中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-19 09:13
47,814 topics / 349,908 posts / today 0 new / 48,259 members
DOS疑难解答 & 问题讨论 (解答室) » [Solved] How to replace files protected by the system, thank you!
Printable Version  2,809 / 22
Floor1 lixin12345 Posted 2008-06-21 13:10
初级用户 Posts 13 Credits 27
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 ]
Floor2 quya Posted 2008-06-21 14:37
高级用户 Posts 172 Credits 558 From 江苏
Floor3 lixin12345 Posted 2008-06-21 16:54
初级用户 Posts 13 Credits 27
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.
Floor4 quya Posted 2008-06-21 17:57
高级用户 Posts 172 Credits 558 From 江苏
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.
Floor5 lixin12345 Posted 2008-06-21 19:29
初级用户 Posts 13 Credits 27
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.
Floor6 quya Posted 2008-06-21 20:55
高级用户 Posts 172 Credits 558 From 江苏
Then I'll post one I made before for your reference



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:

Floor7 lixin12345 Posted 2008-06-21 21:40
初级用户 Posts 13 Credits 27
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 ]
Floor8 quya Posted 2008-06-21 21:48
高级用户 Posts 172 Credits 558 From 江苏
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
Floor9 lixin12345 Posted 2008-06-21 21:54
初级用户 Posts 13 Credits 27
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 ]
Floor10 quya Posted 2008-06-21 22:26
高级用户 Posts 172 Credits 558 From 江苏
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 ]
Floor11 lixin12345 Posted 2008-06-21 22:46
初级用户 Posts 13 Credits 27
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?
Floor12 quya Posted 2008-06-21 23:23
高级用户 Posts 172 Credits 558 From 江苏
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.
Floor13 fastslz Posted 2008-06-22 03:50
铂金会员 Posts 2,315 Credits 5,493 From 上海
Floor14 Climbing Posted 2008-06-22 08:40
铂金会员 Posts 2,753 Credits 6,962 From 河北保定
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.
Floor15 lixin12345 Posted 2008-06-22 08:55
初级用户 Posts 13 Credits 27
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!
1 2  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023