aboutsummaryrefslogtreecommitdiff
path: root/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Program.cs')
-rw-r--r--Program.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/Program.cs b/Program.cs
new file mode 100644
index 0000000..d988de0
--- /dev/null
+++ b/Program.cs
@@ -0,0 +1,15 @@
+using System;
+using Microsoft.Win32;
+
+namespace FakeCMD
+{
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ RegistryKey registryKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion");
+ var buildNumber = registryKey.GetValue("UBR").ToString();
+ Console.WriteLine($"Microsoft Windows [Version {buildNumber}]");
+ }
+ }
+}