Results 1 to 3 of 3
  1. #1
    chyrl is offline Senior Member
    Join Date
    Mar 2010
    Manila, Philippines
    Rep Power

    Exclamation Get Keys from specified Registry folder


    I am familiar on how to use JNI on C languange.
    But is there anyone knows how to get the list of Keys present in a specified registry folder?

    Cyril H.
    Every project, package, class, method, variable, syntax, algorithm, etc.
    are registered in my memory bank. Thanks to this thread.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power


    Do you know of a program that can do this and output the results to standard output? If so, then rather than do JNI, I'd call this program in Java through Runtime#exec(...) and latch onto the process's OutputStream. For instance a Windows scripting utility that I've used, AutoIt, has a method called RegEnumKey that enumerates subkeys in the registry, and then this data can be relatively easily extracted by linking into Java by way of sockets or standard input and standard output streams.

    Another possibility is to have a utility write the data into a file which is then read by your Java program.

  3. #3
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    New Zealand
    Rep Power


    If you go the route of using JNI and C, then this becomes a C problem not a Java one. Probably, though, the best place to look would be a Windows forum or its documentation.

Similar Threads

  1. Replies: 0
    Last Post: 10-28-2010, 01:46 PM
  2. check registry key
    By anilkumar_vist in forum Advanced Java
    Replies: 5
    Last Post: 11-22-2009, 05:52 PM
  3. RMI registry
    By tarunkumar in forum Advanced Java
    Replies: 1
    Last Post: 09-30-2008, 09:02 PM
  4. Registry Problem
    By Mir in forum New To Java
    Replies: 1
    Last Post: 07-19-2008, 05:12 PM
  5. windows registry
    By Fleur in forum New To Java
    Replies: 3
    Last Post: 06-20-2008, 04:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts