Registry export to .txt


  1. Posts : 16
    Windows 7 Ultimate 32bit
       #1

    Registry export to .txt


    Hello,

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

    Here is what I built

    Code:
    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

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Version Vector]
    "IE"="9.0000"
    "VML"="1.0"
    "WindowsEdition"="1"
    "Skype"="6.1.129"
    But I need to export just info from bolded content below:

    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer]
    "MkEnabled"="Yes"
    "Version"="9.0.8112.16421"
    "Build"="98112"
    "IntegratedBrowser"=dword:00000001
    "W2kVersion"="9.0.8112.16421"
    "svcKBFWLink"="http://go.microsoft.com/fwlink/?LinkID=271112"
    "svcVersion"="9.0.8112.16421"
    "svcUpdateVersion"="9.0.12"
    "svcKBNumber"="KB2761465"
    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 Computer


  2. Posts : 640
    Windows 7 Ultimate x64
       #2

    Try this,
    Code:
    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 Computer


  3. Posts : 16
    Windows 7 Ultimate 32bit
    Thread Starter
       #3

    Wow, this is it, thanks

    Code:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer
        Version    REG_SZ    9.0.8112.16421
      My Computer


  4. Posts : 640
    Windows 7 Ultimate x64
       #4

    No problem.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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 21:16.
Find Us