java读取windows注册表
来源:互联网 发布:大荆 去哪里开通网络 编辑:程序博客网 时间:2024/05/16 04:48
import com.registry.RegistryKey;
import com.registry.RegistryValue;
public class RegeditTest {
public static void readRegedit(){
RegistryKey rk = RegistryKey.listRoots()[RegistryKey.HKEY_LOCAL_MACHINE_INDEX];
/*RegistryKey hardware = new RegistryKey(rk, "HARDWARE");
RegistryKey devicemap = new RegistryKey(hardware, "DEVICEMAP");
RegistryKey serialcomm = new RegistryKey(devicemap,"SERIALCOMM");*/
RegistryKey serialcomm = new RegistryKey(rk,"HARDWARE//DEVICEMAP//SERIALCOMM");
// RegistryKey video = new RegistryKey(devicemap, "VIDEO");
// System.out.println(serialcomm.get);
RegistryValue rValue = serialcomm.getValue("//Device//VCP0");
System.out.println(rValue.toString());
/*List<RegistryKey> subKeys = video.getSubKeys();
for (RegistryKey registryKey : subKeys) {
System.out.println(registryKey.getName());
}*/
}
public static void main(String[] args) {
readRegedit();
}
}
- java读取windows注册表
- java 读取 注册表
- java读取注册表
- java读取注册表
- Linux下读取windows注册表
- C# 读取Windows注册表信息
- windows下面读取注册表信息
- java操纵windows注册表
- java读写windows注册表
- JAVA操作windows注册表
- Java操作Windows注册表
- java读写windows注册表
- java读取注册表中的信息
- JAVA注册表读取写入删除
- 读取Windows下注册表,适用于Window Mobile
- python _winreg 读取 注册表 windows error 5
- 《java访问windows注册表读取WinRAR.exe安装路径》开发方法总结
- 使用Java操作Windows注册表
- 计算机总线概述
- JQuery收集
- 如何判断一个网络路径是不是有效路径
- 重载/覆盖/隐藏
- 实习一周记
- java读取windows注册表
- 深入理解HTTP Session
- fcitx加载字体失败
- 仰望星空与脚踏实地
- AAAAAAAAAAAAAA
- java中的string equals 与 == 的比较
- [c/c++] printf格式控制符的完整格式
- 一个浑噩的7年与一个奋斗的7年,两者的差距究竟有多大
- windows2003的优化