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
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

