<< getmodules Configuration getscilabmode >>

Scilab Help >> Scilab > Configuration > getos

getos

donne le nom et la version du système d'exploitation

Séquence d'appel

[OS, Version] = getos()

Description

getos donne le nom voire la version du système d'exploitation depuis lequel la session Scilab courante est lancée.

Exemples

OS = getos()
[OS, version] = getos()
--> OS = getos()
 OS  =
  "Windows"

--> [OS, version] = getos()
 OS  =
  "Windows"

 version  =
  "8 x64"
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

Report an issue
<< getmodules Configuration getscilabmode >>