public static bool IsWindows() { string env = System.Environment.OSVersion.Platform.ToString(); if (env == "Win32NT") return true; return false; }