UniServer / UniPrint / UniHttpd


OS名を取得する

getOSname.java : 2018/11/01 01:41:41 171 Bytes
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
    /**
     * OS名を取得する
     */
    public static String getOSname(){
        String p = System.getProperty("os.name");
        if (p!=null){
            return p;
        }
        return "none";
    }
 

Copyright © UTL Co.,Ltd. All Rights Reserved. [UTL]