c#下注册表操作的一个小细节
先看一个有错误的代码: string subKeyName = @"Software\Microsoft\Windows\CurrentVersion\Run\"; //subkey name string valueName = @"App Name"; //name of the more sp
先看一个有错误的代码: string subKeyName = @"Software\Microsoft\Windows\CurrentVersion\Run\"; //subkey name string valueName = @"App Name"; //name of the more sp
一个基本的格式参考 reg delete KeyName [/v ValueName | /ve | /va] [/f] KeyName [\\Machine\]FullKey Machine 远程机器名 - 忽略当前机器的默认值。 远程机器上只有 HKLM 和 HKU。 FullKey ROOTK
oReg.CreateKey HKEY_LOCAL_MACHINE,strKeyPathoReg.SetExpandedStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValueoReg.SetStringValue HKEY_LO