none
How to list the exe files from registry using JNI RRS feed

  • Question

  • Hi everybody,

    I'm new to JNI.
    i want to read all the exe files which are below this path.

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths

    Ex:-
    I knew how to read the following files AcroRd32.exe and bckgzm.exe, etc;
    which are located in the below path in registry.

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\AcroRd32.exe
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\bckgzm.exe


    by using the RegOpenKeyEx() function.

    But now i need to list all the exe files which are under
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths directory.

    Thro' which method i can get all the files.
    Provide some sample code too.

    kindly reply for this asap.
    Also provide the links which is useful for this question.

    Regards
    Pugazharasu Chandrakesan
    Thursday, July 3, 2008 7:01 AM

Answers