rayser Posted August 11, 2008 Share Posted August 11, 2008 (edited) Just a small script wich u can use before you use a .reg file to later undo the changes:A cmd-Genius might want to correct some stuff and post it back here (but it worked for me):just start it, it will ask you wich reg-file to "secure" and where to save the backup of your registry@echo offcd "%~dp0"set /P regfile=Wich Regfile to parse?set /P bkpdir=Backup Subdirectory?for /F "eol=; delims= tokens=1" %%i in (%regfile%) do call :Parse1 %%~iecho step2for /F "delims= tokens=1" %%j in (temp.txt) do call :Unique %%~jecho step3set counter=1if not exist ".\%bkpdir%" md ".\%bkpdir%"for /F "delims= tokens=1" %%l in (uniq.txt) do call :BKP %%~lif exist ".\temp.txt" del ".\temp.txt"if exist ".\uniq.txt" del ".\uniq.txt"goto:EOF:BKPset str=%*set bf=.\%bkpdir%\%counter%.hivereg save "%str%" "%bf%" > NULIF ERRORLEVEL 1 (echo reg delete "%str%">> .\%bkpdir%\writeback.cmd) else (echo reg restore "%str%" ".\%counter%.hive">> .\%bkpdir%\writeback.cmd)SET /A COUNTER+=1goto:EOF:Uniqueset str=%*if "%str%"=="" goto:EOFif exist .\uniq.txt goto Compareecho %*>> .\uniq.txt:Comparefor /F "delims= tokens=1" %%k in (uniq.txt) do if "%%k"=="%str%" goto:EOFecho %*>> .\uniq.txtgoto:EOF:Parse1SET str=%*if not "%str:~0,1%"=="[" goto:EOFif "%str:~1,1%"=="-" goto BKP2echo %str:~1,-1%>> .\temp.txtgoto:EOF:BKP2echo %str:~2,-1%>> .\temp.txtgoto:EOF Edited August 11, 2008 by rayser Link to comment Share on other sites More sharing options...
some1 Posted August 11, 2008 Share Posted August 11, 2008 @rayserThank you very much for sharing that! Link to comment Share on other sites More sharing options...
tireless Posted August 25, 2008 Share Posted August 25, 2008 (edited) Do you mean this: Use this tool: http://www.utils32.com/regedex.asp Edited August 25, 2008 by tireless Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now