mirror of
https://github.com/alee14-projects/FakeCMD.git
synced 2025-01-22 09:02:02 -05:00
Made some fixes
This commit is contained in:
parent
6ace338b32
commit
749aca0553
2 changed files with 11 additions and 4 deletions
8
InitializeCMD.cs
Normal file
8
InitializeCMD.cs
Normal file
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue