MCPcopy Create free account
hub / github.com/SummerSec/SPATool / isWindowsOS

Method isWindowsOS

src/main/java/com/sumsec/core/cfg/uitls/OSUtil.java:27–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25public class OSUtil {
26 private static Logger logger = LogManager.getLogger(OSUtil.class);
27 public static boolean isWindowsOS() {
28 boolean isWindowsOS = false;
29 String osName = System.getProperty("os.name");
30 if (osName.toLowerCase().indexOf("windows") > -1) {
31 logger.info("当前操作系统为:" + osName);
32 isWindowsOS = true;
33 }
34 return isWindowsOS;
35 }
36
37 public String[] RunCmd(String[] dotPath){
38 boolean isWindowsOS = isWindowsOS();

Callers 2

RunCmdMethod · 0.95
RunCmdMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected