Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Registry export to .txt

30 Jan 2013   #1

Windows 7 Ultimate 32bit
Registry export to .txt


I need to export registry key to .txt file by using .bat file, but it's kinda complicated

Here is what I built

if exist %temp%version.txt del /q %temp%\version.txt

regedit /e %temp%\version.txt "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Version Vector"

start %temp%\version.txt
And it gives this output, what is correct

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Version Vector]
But I need to export just info from bolded content below:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer]
Is this possible, and how? I know how to export whole HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer key, but need only this, if it's somehow possible?

Thanks in advantage

My System SpecsSystem Spec

30 Jan 2013   #2

Windows 7 Ultimate x64

Try this,
REG QUERY "HKLM\SOFTWARE\Microsoft\Internet Explorer" /v "Version" > %temp%\version.txt
It will overwrite the file if it already exist so the first line of your code will be redundant.
My System SpecsSystem Spec
30 Jan 2013   #3

Windows 7 Ultimate 32bit

Wow, this is it, thanks

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer
    Version    REG_SZ    9.0.8112.16421
My System SpecsSystem Spec

31 Jan 2013   #4

Windows 7 Ultimate x64

No problem.
My System SpecsSystem Spec

 Registry export to .txt

Thread Tools

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 08:01 PM.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33