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-21 12:00
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Regarding GhRegpliedt View 1,688 Replies 10
Original Poster Posted 2007-08-27 03:50 ·  中国 福建 泉州 电信
初级用户
Credits 64
Posts 26
Joined 2006-01-10 16:34
20-year member
UID 48756
Status Offline
Why is there no success when following the information from the internet to operate GhRegEdt??

XPSP2 system MAXDOS 5.7, all NTFS format

Want to import the registry in DOS
GhRegEdt -cp=936 import 1.1:\a.reg
GhRegEdt import 1.1:\a.reg
GhRegEdt import 1.1:\windows a.reg

None of them succeed, and it prompts errors like line 2 or that some key value is not found. In Windows, using GhRegEdit32 can import it successfully


Want to delete the registry in DOS, this is also following the information from the internet, but GhRegEdt doesn't work


The following is the information

Introduction: First of all, we need to explain a problem, that is, why not directly edit the registry under Windows, but go to DOS to handle it? Here is an example for everyone to understand. The value under the key HKEY_LOCAL_MACHINE\SYSTEM\WPA, can it be edited? Here Microsoft records the serial number that your system has used, of course it does not allow you to change it casually, so you can't erase your piracy history; and that rogue Chinese internet access official tour, when it finds that a low-version third-party software tries to delete it, it will also lock the registry so that you can't clean it up. Fortunately, there is such an excellent system as DOS. There is no locked file in the Disk Operation System. After a whole afternoon of tossing, I finally figured out this software GhRegEdt that perfectly handles registration data under DOS. Now I will share my experience in using this software with you.

Question: My system is in NTFS format. Can I handle the registry under DOS?
Answer: The NTFS format partition has been around for almost 8 years. Now the newly released DOS software basically supports the data processing of the NTFS format partition. This software GhRegEdt I introduced certainly supports the system in the NTFS format partition.

Question: Where does it come from?
Answer: It comes from Symantec Ghost Solution Suite 2.0

Question: Can it handle 64-bit Windows systems?
Answer: The registry of 64-bit Windows systems cannot be edited and processed under DOS

Question: How to use it?
Answer: Directly enter GhRegEdt, and the help information will appear, but it is a bit obscure, so here I will give examples for each operation of the registry, so that everyone can follow suit.

1. Locate which Windows system's registry needs to be processed (those with only one Windows system can skip this item).
Enter:

Code:
GhRegEdt Windows will list all the Windows systems it detects on your hard drive. For example, 1.1:\windows indicates the first partition of the first hard drive. Since my partitions are all NTFS format, it will not be displayed as drive C under DOS. If your Windows system is installed in the first partition of the second hard drive, of course the location is 2.1:\windows. If you are very familiar with your hard drive partition structure, you can also deduce the location of the Windows system without running this command. If the Windows location parameter is not added when running the command, it will perform registry operations on the default Windows system. Of course, the system on the frontmost partition of the frontmost hard drive is the default.

2. The simplest registry operation, of course, is to add and delete registry keys (Addkey/Delkey)
1) Add registry key (Addkey)
For example, we want to add an item test under HKEY_LOCAL_MACHINE\SOFTWARE, then we should execute the command:

Code:
GhRegEdt addkey 1.1:\windows HKEY_LOCAL_MACHINE\SOFTWARE\test Since the Windows system on the first partition of the first hard drive must be the default system, the system location of 1.1:\windows can be omitted, so the command can be simplified to

Code:
GhRegEdt addkey HKEY_LOCAL_MACHINE\SOFTWARE\test2) Delete registry key (Delkey)
Delete the just-established test item

Code:
GhRegEdt delkey HKEY_LOCAL_MACHINE\SOFTWARE\test Is it very simple?!

3. Add and delete registry key values (Addvalue/Delvalue)
There are five types of registry values, including:
i) String value (REG_SZ);
ii) Binary value (REG_BINARY);
iii) DWORD value (REG_DWORD);
iv) Multi-string value (REG_MULTI_SZ);
v) Expandable string value (REG_EXPAND_SZ)
GhRegEdt can support all registry values in Windows!
For example, we want to add a string value a b c d in the just-added registry item and set its value to 1234, then we can execute the following command:

Code:
GhRegEdt addvalue HKEY_LOCAL_MACHINE\SOFTWARE\test "a b c d" REG_SZ 1234 Here you can see that I added quotes because there are spaces in the string value. When operating under DOS, spaces mean a change in parameters, so quotes must be added to prevent DOS from misjudging. Then if I want to add a string value a and set its value to 1234, I can not add quotes, and the command is as follows:

Code:
GhRegEdt addvalue HKEY_LOCAL_MACHINE\SOFTWARE\test a REG_SZ 1234 If the string value is not specified, the default string value is modified.
Deleting it is very simple! Just change addvalue to delvalue!
What? You ask me what parameter to use to change the key value! It's very simple, just create it directly, and it will overwrite the original value, no special parameter is needed!
Adding and deleting multi-string values is a bit more complicated, and examples are given. For example, we want to add a multi-string value a b c d under the test key and set its value to 1 and 2 and 3 and My Dear, then the following command should be executed:

Code:
GhRegEdt addvalue HKEY_LOCAL_MACHINE\SOFTWARE\test "a b c d" REG_MULTI_SZ :: "1"::"2"::"3"::"My Dear":: You have persisted in reading here, and you should also be able to delete this value. It is indeed simple, and I won't repeat it!

4. View the registry (enumkey/enumvalue)
1) Expand subkeys (enumkey)
It is not recommended to view under DOS at all, because there are often many subkeys, and under DOS, you have to turn the page, and you can't see the previous ones. If you really want to see, it is recommended to add |more (provided that your DOS system has this external command) to stop the screen rolling!
For example, to view the subkeys of HKEY_LOCAL_MACHINE\SOFTWARE

Code:
GhRegEdt enumkey HKEY_LOCAL_MACHINE\SOFTWARE|more2) View the value of a key (enumvalue)
For example, to view the value of the just-established test key

Code:
GhRegEdt enumvalue HKEY_LOCAL_MACHINE\SOFTWARE\test5. Import and export the registry (export/import)
This is mainly used for backup and recovery of the registry. It is particularly reminded that GhRegEdt only supports English by default. If you want it to support Chinese, you must add the Chinese region code, that is, add the parameter -cp=936!
The registry of the Chinese Windows system must contain Chinese, so when importing and exporting, the above parameters must be added. When adding key values, if there are Chinese characters, the above parameters must also be added!
1) Export the registry
For example, export HKEY_LOCAL_MACHINE\SOFTWARE\test to the root directory of the first partition of the first hard drive as the registry file a.reg

Code:
GhRegEdt -cp=936 export 1.1:\a.reg HKEY_LOCAL_MACHINE\SOFTWARE\test2) Import the registry
It's simple to import the just-exported registry file again, no need to add the path in the command line

Code:
GhRegEdt -cp=936 import 1.1:\a.reg
Floor 2 Posted 2007-08-27 03:50 ·  中国 福建 泉州 电信
初级用户
Credits 64
Posts 26
Joined 2006-01-10 16:34
20-year member
UID 48756
Status Offline
Which big brother can help.
Floor 3 Posted 2007-08-27 14:08 ·  中国 河北 保定 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
I have the GhRegEdt tool here, but I've never used it. But since it says it can edit the Windows registry under DOS, I'm sure it can. The reason the landlord can't is probably a mistake in usage or not meeting its usage environment.

In addition, you don't have to edit the Windows registry under DOS. For example, you can do it in a PE system or another Windows system. As long as the registry file you're editing isn't in use. There were some discussions about this issue earlier in the forum.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 4 Posted 2007-08-27 14:23 ·  中国 福建 泉州 电信
初级用户
Credits 64
Posts 26
Joined 2006-01-10 16:34
20-year member
UID 48756
Status Offline
ftp://sysfans:com@59.60.19.234:8839/Utilities/GhRegEdt.rar

The thing is here. Please trouble the boss to study it. I really can't figure it out.
Floor 5 Posted 2007-08-27 14:45 ·  中国 河北 保定 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
Hehe, no time to study, you still have to figure out a way to solve it by yourself.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 6 Posted 2007-08-27 19:13 ·  中国 福建 泉州 电信
初级用户
Credits 64
Posts 26
Joined 2006-01-10 16:34
20-year member
UID 48756
Status Offline
I just can't figure out a way. I've been working on it for a long time and it still doesn't work
Floor 7 Posted 2007-08-28 00:24 ·  中国 陕西 西安 电信
初级用户
Credits 94
Posts 36
Joined 2005-09-19 01:08
20-year member
UID 42619
Status Offline
This thing seems to have been seen before, just never used. Let's take a look first
Floor 8 Posted 2007-08-29 22:26 ·  中国 福建 泉州 电信
初级用户
Credits 64
Posts 26
Joined 2006-01-10 16:34
20-year member
UID 48756
Status Offline
Experts, come up with a few. .
Floor 9 Posted 2007-08-31 15:04 ·  中国 河北 保定 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
I accidentally used the GhRegedt program yesterday, which is quite useful and has no problems at all. The only shortcoming is that there is a limit on the command line length in the DOS environment, and this command line is bound to be very long.

Of course, my partition is FAT32, not an NTFS partition.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 10 Posted 2007-08-31 15:53 ·  中国 福建 泉州 电信
初级用户
Credits 64
Posts 26
Joined 2006-01-10 16:34
20-year member
UID 48756
Status Offline
Haven't you tested it on an NTFS partition??

And how to solve the length limit problem. After all, the registry is really long
Floor 11 Posted 2010-04-20 20:36 ·  中国 广西 防城港 联通
新手上路
Credits 6
Posts 3
Joined 2009-07-08 05:40
16-year member
UID 148958
Gender Male
Status Offline
I have the same problem as the original poster. I've been working on it for a long time and it still doesn't work. So depressed!!! Experts come and give an answer......
Forum Jump: