diff options
| author | Andrew Lee <alee14498@gmail.com> | 2021-01-09 12:52:15 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@gmail.com> | 2021-01-09 12:52:15 -0500 |
| commit | 749aca0553433a76df670540acecddd0565c6a08 (patch) | |
| tree | 4c599a51872e0044cbc971034a408642a152ad6d | |
| parent | 6ace338b32cff8499624d497597e025b47c82d27 (diff) | |
| download | FakeCMD-master.tar.gz FakeCMD-master.tar.bz2 FakeCMD-master.zip | |
| -rw-r--r-- | InitializeCMD.cs | 8 | ||||
| -rw-r--r-- | Program.cs | 7 |
2 files changed, 11 insertions, 4 deletions
diff --git a/InitializeCMD.cs b/InitializeCMD.cs new file mode 100644 index 0000000..bc25780 --- /dev/null +++ b/InitializeCMD.cs @@ -0,0 +1,8 @@ +using System; + +namespace FakeCMD +{ + public class InitializeCMD + { + } +} @@ -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(); } } |
