使用 Microsoft.Win32.RegistryKey读写注册表
2016-12-03 15:07
106 查看
使用 Microsoft.Win32.RegistryKey读写注册表
//添加当前程序为开机启动项 string path = Application.ExecutablePath; Microsoft.Win32.RegistryKey rk = Microsoft.Win32.Registry.LocalMachine; Microsoft.Win32.RegistryKey rk2 = rk.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run"); rk2.SetValue("JcShutdown", path); rk2.Close(); rk.Close();
相关文章推荐
- Qt编程4:QSettings使用一(windows注册表的读写:实际操作)
- VBA使用GetSetting函数和SaveSetting函数读写注册表设置
- 关于 JAVA 中使用 Preferences 读写注册表时要注意的地方
- 分享关于JAVA 中使用Preferences读写注册表时要注意的地方
- C#读写注册表
- 使用CreateFile, ReadFile, WriteFile在Windows NT/2000/XP下读写绝对扇区的方法
- 使用wwAppConfiguration类库来轻松读写应用程序配置信息
- 利用C++Builder读写注册表
- 注册表读写操作(模块)
- 一段精简的使用 ADODB.Stream 读写"大字段"的 VB 代码!
- 用vc读写注册表
- C#读写注册表
- 在Windows平台的WebSphere Application Server 5版本中使用本地操作系统作为用户注册表启用全局安全性失败
- 使用Jxl读写excel文件
- 如何读写注册表
- VB中如何实现注册表的读写
- 如何使用组策略或注册表设置配置自动更新
- 使用Java实现对dbf文件的简单读写
- 使用Java实现对dbf文件的简单读写
- C# 读写注册表