D
David Gacek
How do you write a new Reg_Expand_sz value to the resgistry with vb.net
this used to work when you pad the string with a null.
Anyone know how or what i'm doing wrong ? It just writes a new Reg_sz value
to the reg.
Dim rk2 As Microsoft.Win32.RegistryKey =
Microsoft.Win32.Registry.LocalMachine.CreateSubKey("Software\RegTest\")
rk2.SetValue("Stuff vb.net expanded string", New System.String("%PATH%" &
Microsoft.VisualBasic.vbNullChar))
rk2.Close()
this used to work when you pad the string with a null.
Anyone know how or what i'm doing wrong ? It just writes a new Reg_sz value
to the reg.
Dim rk2 As Microsoft.Win32.RegistryKey =
Microsoft.Win32.Registry.LocalMachine.CreateSubKey("Software\RegTest\")
rk2.SetValue("Stuff vb.net expanded string", New System.String("%PATH%" &
Microsoft.VisualBasic.vbNullChar))
rk2.Close()