![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-10 03:56 |
47,811 topics / 349,897 posts / today 2 new / 48,255 members |
| DOS批处理 & 脚本技术(批处理室) » How to modify the Windows XP registry via batch processing under DOS? |
| Printable Version 2,160 / 11 |
| Floor1 yjjbmk | Posted 2006-10-27 09:43 |
| 新手上路 Posts 4 Credits 10 | |
|
My computer has both DOS and Windows XP systems coexisting. I want to write a batch file to run under DOS to modify the registry under XP. How to write it? I once tried to use the Regedit command, but under DOS, the Regedit command built-in under XP cannot run under DOS. Please help, great experts!
|
|
| Floor2 lxmxn | Posted 2006-10-27 10:11 |
| 版主 Posts 4,938 Credits 11,386 | |
|
Can't the regedit command be used under DOS? |
|
| Floor3 yjjbmk | Posted 2006-10-28 04:07 |
| 新手上路 Posts 4 Credits 10 | |
|
The regedit command cannot be used!
I entered the C:\Windows directory, typed regedit, and it prompted that this command cannot run under DOS! |
|
| Floor4 lxmxn | Posted 2006-10-28 04:51 |
| 版主 Posts 4,938 Credits 11,386 | |
|
Then you can only download third-party registry tools under DOS. |
|
| Floor5 xuantian | Posted 2006-10-28 12:49 |
| 高级用户 Posts 282 Credits 587 | |
|
Modifying the registry of XP in real mode of DOS, it's not impossible, but it's just too unstable, right?
|
|
| Floor6 electronixtar | Posted 2006-10-28 23:15 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
I remember that it seems that Win98's built-in Regedit can modify the XP registry, and it supports regedit /c to rebuild.
|
|
| Floor7 ooaf | Posted 2007-04-02 08:20 |
| 中级用户 Posts 162 Credits 313 | |
|
C:\af>reg /?
Windows Registry Editor Version 3.0 Copyright (C) Microsoft Corp. 1981-2001. All rights reserved. REG Operation [parameter list] Operation [ QUERY | ADD | DELETE | COPY | SAVE | LOAD | UNLOAD | RESTORE | COMPARE | EXPORT | IMPORT ] Return codes: (except REG COMPARE) 0 - Success 1 - Failure To get help on a specific operation, type: REG Operation /? For example: REG QUERY /? REG ADD /? REG DELETE /? REG COPY /? REG SAVE /? REG RESTORE /? REG LOAD /? REG UNLOAD /? REG COMPARE /? REG EXPORT /? REG IMPORT /? |
|
| Floor8 6622186 | Posted 2007-04-21 01:23 |
| 高级用户 Posts 411 Credits 894 | |
|
ghregedt is okay, it seems not very easy to use, but better than nothing
|
|
| Floor9 zhoushijay | Posted 2007-04-21 01:48 |
| 高级用户 Posts 375 Credits 845 | |
|
ECHO Put it like *.reg
Then run *.reg pause I don't know if this can work |
|
| Floor10 my3439955 | Posted 2007-04-21 09:07 |
| 中级用户 Posts 99 Credits 272 | |
|
In pure DOS, there is no concept of the registry at all, and there is no specific registry file at all.
The system's regedit.exe is a 32-bit application, so naturally it cannot run in the 16-bit DOS environment. The information contained in the registry is not a specific file. Even if there is a specific file, the structure inside is not recognizable to us. Under Windows, Microsoft provides special functions that allow us to operate the registry. Many contents are directly loaded into memory. Personally, I think that there is no possibility of operating the registry in pure DOS. [ Last edited by my3439955 on 2007-4-21 at 10:07 PM ] |
|
| Floor11 waynebeat | Posted 2007-04-21 13:44 |
| 初级用户 Posts 28 Credits 84 | |
|
Modifying the registry under DOS can only be achieved on Windows 98.
However, you can back up some relevant files in the c:\windows\system32\config\ directory and ntuser.* under %userprofile%. In case there is any problem with the system, you can use them to repair. |
|
| Floor12 lihuisamsung | Posted 2008-10-13 09:04 |
| 新手上路 Posts 2 Credits 4 | |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |