Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - Русский
Scilabヘルプ >> Scilab > Configuration > getos

getos

オペレーティングシステムの名前とバージョンを返す

呼出し手順

OS=getos()
[OS,Version]=getos()

説明

[OS,Version]=getos()は, オペレーティングシステムの名前とバージョンを返します.

OS=getos()
[OS,version] = getos()
if (getos() == "Windows") then
   disp("Scilab on Windows");
end
if (getos() == "Linux") then
   disp("Scilab on Linux");
end
if (getos() == "SunOS") then
   disp("Scilab on Solaris");
end
if (getos() == "Darwin") then
   disp("Scilab on MacOs");
end
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Feb 14 15:01:59 CET 2019