/////////////////////////////////////////////////////////////////// /// /// /// USING REGISTRY THROUGH DOS MODE /// /// /// /// /// /// by /// /// /// /// /// /// Pavel /// /// /// /// /// /// Visit our site at : http://www.cccp.8m.net /// /// /// /// sadreck@yahoo.com /// /// /// /// /// /////////////////////////////////////////////////////////////////// Some times you might have to use the Registry through DOS Mode ( at least...I had to do it once !) . It is easy if you already know one or two stuff about Registry.Well..here we go ! Note : If you destroy Registry , in DOS Mode type : C:\scanreg /restore and believe me...this is the only thing that will save you and your computer ! -=EXTRACTING FILES FROM REGISTRY=- [Usage] C:\regedit.exe /e [filename] [Registry Path] Example : C:\regedit.exe /e C:\output.txt HKEY_LOCAL_MACHINE\Software\Microsoft\ Windows\CurrentVersion\Run -=IMPORTING FILES INTO REGISTRY=- [Usage] C:\regedit.exe /c [filename] Example : C:\regedit.exe /c C:\output.txt -=HOW TO CREATE *.reg FILES=- At the first line you MUST type : ------------ REGEDIT4 ------------ Then the Registry Path : ------------ [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run] ------------ After that , you must enter your string. For String : ------------ "My String Name"="My Value" ------------ For Binary : ------------ "My String Name"=hex:value,value,value ------------ If you want to change line you must do it like this : ------------ "My String Name"=hex:value,value,value,value,\ value,value ------------ For DWORD : ------------ "My String Name"=dword:00000000 ------------ -=-=-=REG FILE EXAMPLE=-=- ------------------------------------------------ REGEDIT4 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run] "MyProgram"="C:\Windows\MyProgram.exe" [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\MyKey] "This is a note"="Please Delete Me !" [HKEY_CURRENT_USER\Software\Windows\Windows\CurrentVersion\Policies\Explorer] "NoClose"=dword:00000001 [HKEY_CURRENT_USER\Software\Windows\Windows\CurrentVersion\Policies\Explorer] "NoDriveTypeAutoRun"=hex:95,00 ------------------------------------------------ Copy & Paste this in a file and name the file test.reg ( The Extenstion MUST be *.reg) and run the file ! //////////////////////////////////////////////////////////////////// Pavel