

InterviewSolution
Saved Bookmarks
1. |
Solve : Registry edit using Dos? |
Answer» <html><body><p>I want to create a read error of a registry key file using MS Dos <br/><br/>The key file and all its bionary , string , DWORD etc value will work perfect.<br/>so give me a best solution with Dos Code.<br/><br/>thanks &<a href="https://interviewquestions.tuteehub.com/tag/amp-363144" style="font-weight:bold;" target="_blank" title="Click to know more about AMP">AMP</a>; regards<br/>Sohom<a href="https://support.microsoft.com/kb/131352">http://support.microsoft.com/kb/131352</a><br/><br/><br/>MS-DOS doesn't have a "registry".<br/>Sohom,<br/><br/><br/><a href="http://articles.techrepublic.com.com/5100-10878_11-1032874.html">http://articles.techrepublic.com.com/5100-10878_11-1032874.html</a><br/><br/>Using REGEDIT in DOS<br/>The utility we are going to use is REGEDIT.EXE—the same REGEDIT that we use in Windows also <a href="https://interviewquestions.tuteehub.com/tag/runs-246860" style="font-weight:bold;" target="_blank" title="Click to know more about RUNS">RUNS</a> as a DOS <a href="https://interviewquestions.tuteehub.com/tag/program-246414" style="font-weight:bold;" target="_blank" title="Click to know more about PROGRAM">PROGRAM</a>. 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.<br/>For the sake of simplicity, we will assume that SYSTEM.DAT, USER.DAT, and REGEDIT.EXE reside in the <a href="https://interviewquestions.tuteehub.com/tag/c-3540" style="font-weight:bold;" target="_blank" title="Click to know more about C">C</a>:WINDOWS directory.<br/>You mean "Win32 command line", not "DOS".<br/><br/>Regedit is an interactive utility. <br/><br/>You can use the <a href="https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/reg.mspx?mfr=true">reg</a> command which can be used from the "Win32 Command Line" or from a batch file. If you prefer another language you can use the <a href="http://www.robvanderwoude.com/vbstech_registry_stdregprov.php">StdRegProv</a> object.<br/><br/>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) <br/><br/>The command is called REG.EXE and since Windows 7 and I think Windows 2003 it has always been there.<br/>To explore the command, simply time REG /?, you will get something like this:<br/>REG Operation [Parameter List]<br/> Operation [ QUERY | ADD | DELETE | COPY | SAVE | LOAD | UNLOAD | RESTORE | COMPARE | EXPORT | IMPORT | FLAGS ]<br/>Return Code: (Except for REG COMPARE)<br/> 0 - Successful<br/> 1 - Failed<br/>For help on a specific operation type:<br/> REG Operation /?<br/>Examples<br/><br/> REG QUERY /?<br/> REG ADD /?<br/> REG DELETE /?<br/> REG COPY /?<br/> REG SAVE /?<br/> REG RESTORE /?<br/> REG LOAD /?<br/> REG UNLOAD /?<br/> REG COMPARE /?<br/> REG EXPORT /?<br/> REG IMPORT /?<br/> REG FLAGS /?<br/><br/>What <a href="https://interviewquestions.tuteehub.com/tag/exactly-977868" style="font-weight:bold;" target="_blank" title="Click to know more about EXACTLY">EXACTLY</a> are you trying to do?</p></body></html> | |