Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# write to registry hkey_current_user

//accessing the CurrentUser root element  
//and adding "OurSettings" subkey to the "SOFTWARE" subkey  
RegistryKey key = Registry.CurrentUser.CreateSubKey(@"SOFTWAREOurSettings"); 

//storing the values  
key.SetValue("Setting1", "This is our setting 1");  
key.SetValue("Setting2", "This is our setting 2");  
key.Close(); 
 
PREVIOUS NEXT
Tagged: #write #registry
ADD COMMENT
Topic
Name
6+1 =