CODE: [Copy to clipboard]
:: DisplayName.bat - Get DisplayName of software from reg file
:: Will Sort - 16:45 2006-1-4 - MSDOS7.10
@echo off
if "%1"=="REG_SZ" goto ParseName
:Init
if exist dst.txt del dst.txt
if not exist src.reg goto end
find "DisplayName" /i < src.reg | find "HKEY" /i /v > _DspName.bat
:MainLoop
set _name=
if not exist _DspName.bat goto Quit
call _DspName.bat
if "%_name%"=="" goto Quit
echo %_name%
echo %_name%>> dst.txt
find "%_name%" /v < _DspName.bat > _DspName.tmp
copy _DspName.tmp _DspName.bat > nul
goto MainLoop
:ParseName
set _name=%2
:ParseLoop
if "%3"=="" goto end
shift
set _name=%_name% %2
goto ParseLoop
:Quit
if exist _DspName.* del _DspName.*
goto end
:end
[