1.

Solve : Registry edit using Dos?

Answer»

I want to create a read error of a  registry key file using MS Dos

The key file and all its bionary , string , DWORD etc value will work perfect.
so give me a best solution with Dos Code.

thanks & regards
Sohomhttp://support.microsoft.com/kb/131352


MS-DOS doesn't have a "registry".
Sohom,


http://articles.techrepublic.com.com/5100-10878_11-1032874.html

Using REGEDIT in DOS
The utility we are going to use is REGEDIT.EXE—the same REGEDIT that we use in Windows also RUNS as a DOS PROGRAM. REGEDIT.EXE supports command line arguments that allow us to do a complete registry rebuild, while leaving the dirt and empty spaces behind. We  will eliminate the need to repetitively type commands by creating four batch files that you can carry with you and run from a floppy.
For the sake of simplicity, we will assume that SYSTEM.DAT, USER.DAT, and REGEDIT.EXE reside in the C:WINDOWS directory.
You mean "Win32 command line", not "DOS".

Regedit is an interactive utility.

You can use the reg command which can be used from the "Win32 Command Line" or from a batch file. If you prefer another language you can use the StdRegProv object.

Good luck.  There is a very simple way to edit/import/export the registry via the command line. It has always been there in Windows (maybe some earlier versions of Windows required the resource kit to be installed, but there has always been a possibility to do that)

The command is called REG.EXE and since Windows 7 and I think Windows 2003 it has always been there.
To explore the command, simply time REG /?, you will get something like this:
REG Operation [Parameter List]
  Operation  [ QUERY | ADD | DELETE | COPY | SAVE | LOAD | UNLOAD | RESTORE | COMPARE | EXPORT | IMPORT  | FLAGS ]
Return Code: (Except for REG COMPARE)
  0 - Successful
  1 - Failed
For help on a specific operation type:
  REG Operation /?
Examples

  REG QUERY /?
  REG ADD /?
  REG DELETE /?
  REG COPY /?
  REG SAVE /?
  REG RESTORE /?
  REG LOAD /?
  REG UNLOAD /?
  REG COMPARE /?
  REG EXPORT /?
  REG IMPORT /?
  REG FLAGS /?

What EXACTLY are you trying to do?



Discussion

No Comment Found