China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-02 15:00
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » [Solved] How to replace files protected by the system, thank you! View 2,587 Replies 22
Floor 16 Posted 2008-06-22 09:46 ·  中国 江苏 苏州 电信
高级用户
★★
五星老土
Credits 558
Posts 172
Joined 2003-02-09 00:00
23-year member
UID 881
Gender Male
From 江苏
Status Offline
I can say responsibly that the replace command is not useful for XP protected files.

The replace command is only useful for files that are not critical XP files but are in use.

I've already learned from that lesson.

As for whether the foreigner's writing is useful, I don't know. It's really too long, and at my level, I can't understand it. I'm getting old, my comprehension is not good, and I get dizzy after reading for a while.

[ Last edited by quya on 2008-6-22 at 09:51 AM ]
我怎么找不到一个比我注册日期早的人? 难道我是传说中的超级管理员? 其实我只是个潜水冠军而已.
Floor 17 Posted 2008-06-22 10:15 ·  中国 江苏 苏州 电信
初级用户
Credits 27
Posts 13
Joined 2008-06-21 09:52
18-year member
UID 120670
Gender Male
Status Offline
Just now in this place:
http://www.diybl.com/course/hack/ha_h/2007616/56802.html
Found an article, friends who are interested can also go and have a look.

"Quietly replacing the system files in use on Win2000/XP"
Floor 18 Posted 2008-06-22 11:10 ·  中国 江苏 苏州 电信
高级用户
★★
五星老土
Credits 558
Posts 172
Joined 2003-02-09 00:00
23-year member
UID 881
Gender Male
From 江苏
Status Offline
Originally posted by lixin12345 at 2008-6-22 10:15 AM:
Just now at this place:
http://www.diybl.com/course/hack/ha_h/2007616/56802.html
Found an article. Friends who are interested can also go and have a look.

"Quietly replacing the system files in use on Win2000/XP"


So I said that batch processing is mostly not possible. You see, the experts are using C language.
我怎么找不到一个比我注册日期早的人? 难道我是传说中的超级管理员? 其实我只是个潜水冠军而已.
Floor 19 Posted 2008-06-22 15:50 ·  中国 河北 保定 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
Basically, it's not very likely to be achieved. Still, it's more convenient in the PE or pure DOS environment.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 20 Posted 2008-06-22 19:17 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
You don't need to understand replacer.cmd! Actually, I don't understand it either, and there's no need to understand it. Just know how to use it. Briefly explain the usage (batch replacing system files, individual ones are not mentioned much).

First, create a file list list.txt to be replaced. Suppose you want to replace shell32.dll and winlogon.exe, then the content of list.txt is
;; ReplacerScript
shell32.dll
winlogon.exe

Then run the command
echo y|"D:\Test\replacer.cmd" "D:\Test\list.txt"

OK.
It should be noted that the new shell32.dll and winlogon.exe files are placed in D:\Test (that is, the same directory as replacer.cmd)
第一高手 第二高手

Floor 21 Posted 2008-06-22 22:03 ·  中国 江苏 苏州 电信
初级用户
Credits 27
Posts 13
Joined 2008-06-21 09:52
18-year member
UID 120670
Gender Male
Status Offline
So moved, the test was successful, really thank you, completely solved my problem!!!!!
The expert is really an expert, solved the problem at the first try! Thank you again!!!!!
Floor 22 Posted 2008-06-23 09:15 ·  中国 河北 保定 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
Hehe, to be honest, when I first saw the long code of Replacer, I really felt quite headache, but after calming down and reading carefully, it turned out that the principle is very simple, as follows:

Under Windows, you can't replace a file that is in use, such as shell32.dll, but you can rename this file, because Windows will use the renamed file before restarting. Here you copy the file used for replacement with the original name, and after restarting, Windows will re-use the replaced file.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 23 Posted 2008-06-23 18:36 ·  中国 江苏 苏州 电信
高级用户
★★
五星老土
Credits 558
Posts 172
Joined 2003-02-09 00:00
23-year member
UID 881
Gender Male
From 江苏
Status Offline
Originally posted by Climbing at 2008-6-2期间9:15 AM:
Hehe, to be honest, when I first saw the long code of Replacer, I really felt quite headache. But after calming down and looking carefully, it turned out that the principle is very simple, as follows:

Under Windows, you can't...


I have a doubt. I once manually replaced by renaming, but it still didn't work after restarting. Maybe the renaming method isn't 100% applicable to all files.
我怎么找不到一个比我注册日期早的人? 难道我是传说中的超级管理员? 其实我只是个潜水冠军而已.
Forum Jump: