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-01 07:34
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Help! How to restore the registry of the XP system under DOS? View 1,973 Replies 8
Original Poster Posted 2007-03-07 11:40 ·  中国 江苏 无锡 电信
新手上路
Credits 10
Posts 4
Joined 2007-03-07 10:23
19-year member
UID 80993
Gender Male
Status Offline
After I modified the registry, my XP system cannot boot, and it's also not possible in safe mode. But I made a backup. May I ask how I can restore my backed-up registry under DOS? The file I backed up has the.reg extension, and I remember there are 5 registry files in XP: system, software, sam, seurity, default. Do I need to write the backed-up file into the aforementioned 5 files respectively? How to write them in? Thank you in advance, urgently waiting.
Floor 2 Posted 2007-03-07 12:06 ·  中国 河南 开封 联通
高级用户
★★
Credits 783
Posts 268
Joined 2006-12-26 17:18
19-year member
UID 74627
Gender Male
Status Offline
Can't we just directly import by entering the backup file name under the command prompt?

You can try using the command reg import backup.reg to import.

If it still doesn't work, we'll discuss it further.
菩提本无树,明镜亦非台,本来无一物,何处惹尘埃.
Floor 3 Posted 2007-03-07 13:25 ·  中国 江苏 无锡 电信
新手上路
Credits 10
Posts 4
Joined 2007-03-07 10:23
19-year member
UID 80993
Gender Male
Status Offline
Is there a "reg" command in DOS after booting with a DOS boot disk?
Floor 4 Posted 2007-03-07 13:40 ·  中国 黑龙江 哈尔滨 电信
高级用户
★★★
Credits 760
Posts 357
Joined 2005-10-10 22:33
20-year member
UID 43332
Status Offline
@DELTREE.EXE /y c:\windows\system32\config\system
@DELTREE.EXE /y c:\windows\system32\config\software
@DELTREE.EXE /y c:\windows\system32\config\sam
@DELTREE.EXE /y c:\windows\system32\config\security
@DELTREE.EXE /y c:\windows\system32\config\default
@copy c:\windows\repair\system c:\windows\system32\config\system
@copy c:\windows\repair\software c:\windows\system32\config\software
@copy c:\windows\repair\sam c:\windows\system32\config\sam
@copy c:\windows\repair\security c:\windows\system32\config\security
@copy c:\windows\repair\default c:\windows\system32\config\default
@GOTO TC
Floor 5 Posted 2007-03-07 13:41 ·  中国 黑龙江 哈尔滨 电信
高级用户
★★★
Credits 760
Posts 357
Joined 2005-10-10 22:33
20-year member
UID 43332
Status Offline
If it's a registry issue, you can enter the system with the above command, and then try to make changes!
Floor 6 Posted 2007-03-09 13:41 ·  中国 河北 石家庄 联通
初级用户
Credits 28
Posts 12
Joined 2006-09-06 12:10
19-year member
UID 61970
Status Offline
I encountered a similar problem before. I deleted a USER registry key at that time. You can try creating an administrator account under DOS.
Floor 7 Posted 2007-03-09 20:05 ·  中国 河北 保定 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
It's quite difficult to import a reg file under DOS. You can boot into a PE, and then load the corresponding registry file of the XP system through PE, and then import the reg file (some corresponding modifications are needed).

Under PE:
reg load hklm\xpsys system
reg load hklm\xpsoft software
...
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 8 Posted 2007-03-20 23:14 ·  中国 上海 电信
初级用户
Credits 21
Posts 9
Joined 2005-08-29 11:21
20-year member
UID 42047
Status Offline
It is a component of GHOST 8.3, claiming to be able to import/export the registries of XP, 2003 and other systems in DOS. I haven't used it, but intuitively it should be able to.

Click here to download. Link has expired (note from administrator)
Floor 9 Posted 2007-03-22 13:16 ·  中国 广西 南宁 西乡塘区 电信
中级用户
★★
Credits 259
Posts 164
Joined 2006-09-21 23:39
19-year member
UID 63296
Status Offline
Is the 4th floor feasible? Can someone say something?
Forum Jump: