From 749aca0553433a76df670540acecddd0565c6a08 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sat, 9 Jan 2021 12:52:15 -0500 Subject: Made some fixes --- Program.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Program.cs') diff --git a/Program.cs b/Program.cs index b7e7c3c..c079c34 100644 --- a/Program.cs +++ b/Program.cs @@ -7,12 +7,11 @@ namespace FakeCMD { static void Main(string[] args) { + Console.WriteLine($"Microsoft Windows [Version {Environment.OSVersion.Version}]"); + Console.WriteLine("(c) 2020 Microsoft Corporation. All rights reserved."); #if DEBUG - Console.WriteLine("You are running .NET {0}", Environment.Version.ToString()); + Console.WriteLine("\nYou are running .NET {0}", Environment.Version.ToString()); #endif - RegistryKey registryKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion"); - var buildNumber = registryKey.GetValue("UBR").ToString(); - Console.WriteLine($"Microsoft Windows [Version {buildNumber}]"); Console.ReadLine(); } } -- cgit v1.2.3