using System; using System.Resources; using Microsoft.Win32; using System.Diagnostics; class RegistreEnregistrerValeur { static void Main(string[] args) { RegistryKey regKey = Registry.CurrentUser; regKey = regKey.CreateSubKey(@"SoftwareIntertechmesexemples"); regKey.SetValue("Couleur", "Verte"); regKey.SetValue("Taille", "29"); Console.WriteLine("La configuration a été enregistrée"); } } |
0