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-06-22 12:02
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Editing the registry under DOS View 5,724 Replies 32
Floor 16 Posted 2004-07-24 00:00 ·  中国 广东 广州 联通
中级用户
★★
Credits 378
Posts 88
Joined 2004-05-05 00:00
22-year member
UID 23815
Gender Male
Status Offline
Copy the system in the windows\system32\config directory, for example, copy it to D: Back to XP, enter reg load hklm\sxbg d:\system in the CMD window, open the Registry Editor regedit, go to HKEY_LOCAL_MACHINE\sxbg to do what you need to do, after finishing, reg unload hklm\sxbg, go to DOS, overwrite the system in the windows\system32\config directory with D:\system, OK!
www.51ct.net
Floor 17 Posted 2004-07-24 00:00 ·  中国 四川 成都 鹏博士宽带
初级用户
Credits 142
Posts 18
Joined 2004-07-23 00:00
21-year member
UID 28840
Gender Male
Status Offline
I used a Windows 98 boot disk. In command line mode, I typed c:\Windows\System32\Config>copy SYSTEM h:\, which copied the SYSTEM file from the windows\system32\config directory to h:\SYSTEM. I restarted the PC. Then, in the XP command line, I entered reg load HKEY_LOCAL_MACHINE\sys h:\SYSTEM and got the system message: the operation completed successfully. After entering the registry editor, I closed the registry. Then, in the XP command line, I entered reg unload HKEY_LOCAL_MACHINE\sys and got the system message: the operation completed successfully. Then, in the XP command line, I entered replace h:\SYSTEM c:\WINDOWS\system32\config and got the system message: extended error 32. Only the overwriting step didn't succeed. I tried entering replace h:\SYSTEM c:\WINDOWS\system32\config in normal mode and safe mode command lines, and the former had the error: extended error 32, while the latter had the error: bad common or file name! My XP hasn't been activated via the internet. I completed the update for SP1 by modifying oobe, and the current CD-key is still valid and can continue updating. Thanks for your efforts! Hope this information is helpful! Thank you!
Floor 18 Posted 2004-07-24 00:00 ·  中国 广东 广州 联通
中级用户
★★
Credits 378
Posts 88
Joined 2004-05-05 00:00
22-year member
UID 23815
Gender Male
Status Offline
Go to DOS, and overwrite system in the Windows\system32\config directory with the modified D:\system. Have you heard that registry files can be replaced under Windows??????
www.51ct.net
Floor 19 Posted 2004-07-24 00:00 ·  中国 广东 广州 联通
中级用户
★★
Credits 378
Posts 88
Joined 2004-05-05 00:00
22-year member
UID 23815
Gender Male
Status Offline
Even copying has to be done in DOS, let alone replacing?
www.51ct.net
Floor 20 Posted 2004-07-24 00:00 ·  中国 四川 成都 鹏博士宽带
初级用户
Credits 142
Posts 18
Joined 2004-07-23 00:00
21-year member
UID 28840
Gender Male
Status Offline
Thanks! The key point is that under the 98 boot disk, what first appears is: a:\> Then I type c: and it goes to c:\> Then I type replace h:\SYSTEM c:\WINDOWS\system32\config, and the error is bad common or file name! Confused! What environment does "switch to DOS" refer to running DOS in? Also, is there any difference between the "overwrite" command of the 98 boot disk and the "overwrite" command in the command line mode of XP? Really want to cry! Thanks for your hard work!
Floor 21 Posted 2004-07-24 00:00 ·  中国 广东 广州 联通
中级用户
★★
Credits 378
Posts 88
Joined 2004-05-05 00:00
22-year member
UID 23815
Gender Male
Status Offline
Just use the copy command. When prompted whether to overwrite, select Y.
www.51ct.net
Floor 22 Posted 2004-07-24 00:00 ·  中国 四川 成都 鹏博士宽带
初级用户
Credits 142
Posts 18
Joined 2004-07-23 00:00
21-year member
UID 28840
Gender Male
Status Offline
Finally understand the meaning of "overwrite"! Thanks! I'll go and operate!
Floor 23 Posted 2004-07-24 00:00 ·  中国 四川 成都 鹏博士宽带
初级用户
Credits 142
Posts 18
Joined 2004-07-23 00:00
21-year member
UID 28840
Gender Male
Status Offline
Great! Got it! It turns out I misunderstood the command used for "overwriting"! The copy command is more powerful than replace. In this way, many things that couldn't be changed can all be done like this! Wrote to Xiao Shitou and Sixing Bugai! If there's anything I know, I will definitely do my best! bow~
Floor 24 Posted 2004-07-25 00:00 ·  中国 河北 石家庄 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
Oh, dizzy~~~~ Fortunately I didn't come yesterday, otherwise I would have died. Thanks for not changing.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 25 Posted 2004-07-27 00:00 ·  中国 河北 石家庄 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
I think it's best to solve the problem in the forum. Personally, I feel I've made the instructions clear enough in the forum. The reason you don't understand is that you lack relevant background knowledge. Here I'll reorganize the operation steps. If you still don't understand, I suggest you seek nearby technical support:

1. Enter a pure DOS environment. The pure DOS environment here refers to another operating environment independent of Windows XP. For example, you can boot your machine with a 98 startup disk. Because when XP is running, you can't copy its system registry file out. So if your machine has another system installed, you can also enter that system. In short, don't let your XP be running.

2. Copy your XP's system file to another place under pure DOS. If your XP's partition is in NTFS format, you can't directly access the NTFS partition under pure DOS. You may need to run ntfs pro for dos to access the NTFS partition. If your XP partition is not NTFS, it's very simple. Suppose your XP is installed in the c:\windows directory and you want to copy the system file to d:\, you just need to run the following command: copy /y c:\windows\system32\config\system d:\

3. Restart the computer and return to your XP. Then mount the copied system file to another directory of the XP system registry. For example, you can mount it to HKLM\sys. The specific command should be like this:
reg load hklm\sys x:\system
This command is run in the DOS mode of XP.

4. Run the regedit registry editing program under XP, and then you can browse to the hklm\sys directory to perform operations and delete the key values you want to delete.

5. After deletion, use the command again (this command also runs in the DOS mode of XP):
reg unload hklm\sys

6. At this time, your d:\system is already the system with the things you want to delete removed. Restart the computer and return to the pure DOS environment, and use this modified system to overwrite the system in the c:\windows\system32\config directory. The command to be used: copy /y d:\system c:\windows\system32\config
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 26 Posted 2004-12-05 00:00 ·  中国 山东 济宁 电信
中级用户
★★★
痴迷DOS者
Credits 456
Posts 570
Joined 2004-10-09 00:00
21-year member
UID 32281
Gender Male
Status Offline
The following is the statement from chee on 2004-7-24 17:25:53:

I used the 98 startup disk, and at the command line mode, I typed c:\Windows\System32\Config>copy SYSTEM h:\, copied the system in the windows\system32\config directory out, and copied it to h:\SYSTEM.
Restarted the PC, and at the command line mode of XP, I entered reg load HKEY_LOCAL_MACHINE\sys h:\SYSTEM, and got the system message: the operation completed successfully. Then I entered the registry editor, after that, closed the registry, and then at the command line mode of XP, I entered reg unload HKEY_LOCAL_MACHINE\sys, and got the system message: the operation completed successfully.
Then at the command line mode of XP, I entered replace h:\SYSTEM c:\WINDOWS\system32\config, and got the system message: extended error 32
Only the covering step couldn't be successful. I tried to enter replace h:\SYSTEM c:\WINDOWS\system32\config at the command line mode of normal mode and safe mode, and entered replace h:\SYSTEM c:\WINDOWS\system32\config on the 98 startup disk. The error of the former was: extended error 32, and the error of the latter was bad common or file name!
My XP hasn't been activated through internet. After modifying oobe, the update of sp1 was completed. Now the cd-key is still valid, and can continue update.
Thank you two hardworking people! Hope these informations are helpful!
Thanks!

Used attrib, copy on the 98 startup disk in fact
DOS不是万能的,没有DOS是万万不能的
自古系统谁无死?留取胆清照汗青!uploadImages/20035317345478982.png
Floor 27 Posted 2006-06-13 19:56 ·  中国 广东 东莞 电信
初级用户
★★
Credits 118
Posts 66
Joined 2005-10-21 03:27
20-year member
UID 43827
Status Offline
I really admire you for not modifying such garbage people's posts!
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
Jneny -8 2008-08-16 08:47
Floor 28 Posted 2006-06-14 12:46 ·  中国 广东 深圳 电信
初级用户
★★
Credits 128
Posts 51
Joined 2006-01-05 12:20
20-year member
UID 48466
Gender Male
From 江西省萍乡市安源区
Status Offline
Hiren's Boot CD seems to have software for editing the registry under DOS, you guys look for it.
江西省萍乡市安源区

鹤舞蓝沙
Floor 29 Posted 2007-07-26 19:06 ·  中国 福建 厦门 电信
高级用户
★★★
Credits 741
Posts 366
Joined 2007-07-25 19:11
18-year member
UID 94024
Gender Male
Status Offline
You can modify by hooking with Registrar Registry Manager in WinPE, which is intuitive and effective:) There should be no REG command in DOS (that is the command brought by consoles like 2000, xp, etc.). As for the problem of modifying the registry of 98 with regedit, it is not a big deal. I haven't tried modifying the registry of xp, so I maintain a cautious attitude here.

[ Last edited by netwinxp on 2007-7-26 at 07:08 PM ]
Floor 30 Posted 2007-08-21 14:54 ·  中国 福建 厦门 思明区 电信
初级用户
★★
Credits 156
Posts 76
Joined 2007-08-20 11:52
18-year member
UID 95399
Gender Male
Status Offline
If I remember correctly, there is a regedt32 in the system which is specifically for modifying the permissions of registry key values. For example, the sam item
Forum Jump: