Mudar o valor

0 respostas
monike

Boa Tarde!
Gostaria de saber como faço para acessar a pasta e mudar o valor do registro windows?
Do jeito que estou testando não está mudando o valor…
Obrigada!!!

import java.util.prefs.Preferences;

public class WindowRegistry {

static final String REG_KEY = "Personal";       
static  String PERSONAL_FOLDER = "/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Explorer/Shell Folders" ;
  
public static void main(String args[]) {

    //Retrieve a reference to the root of the system preferences tree

    Preferences systemRoot = Preferences.systemRoot().node(PERSONAL_FOLDER);         
    systemRoot.put(REG_KEY, "www.Testando.com");

}

}

Criado 24 de maio de 2011
Respostas 0
Participantes 1