// SetShowSecondsInTaskbarClock.cs // // Show Seconds in Taskbar Clock. // Adds a seconds display to the taskbar clock. // // Usage: dotnet new console -o SetShowSecondsInTaskbarClock, replace Program.cs with this // file, then dotnet run. using System; using Microsoft.Win32; using RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"); key.SetValue("ShowSecondsInSystemClock", 1, RegistryValueKind.DWord); Console.WriteLine("Show Seconds in Taskbar Clock applied.");