Made some fixes

This commit is contained in:
Andrew Lee 2021-01-09 12:52:15 -05:00
parent 6ace338b32
commit 749aca0553
2 changed files with 11 additions and 4 deletions

8
InitializeCMD.cs Normal file
View file

@ -0,0 +1,8 @@
using System;
namespace FakeCMD
{
public class InitializeCMD
{
}
}

View file

@ -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();
}
}