Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.1 - Русский

Change language to:
English - Français - 日本語 - Português -

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Справка Scilab >> Scilab > Конфигурация > sciargs

sciargs

аргументы командной строки Scilab'а

Синтаксис

args = sciargs()

Описание

Эта функция возвращает вектор-столбец символьных строк, содержащий аргументы командной строки Scilab. args(1) содержит абсолютный путь и имя файла исполняемого файла, фактически запущенного (иногда через пакетный файл).

Эта функция соответствует функции getarg в языке C.

Примеры

While the current Scilab session has been opened through the command

C:\Users\Me> C:\SCIdir\bin\scilab -nw -nb -noatomsautoload -args "Hello %USERNAME%" \"%cd%\"

we then get

a = sciargs()
--> a = sciargs()
 a  =
! c:\SCIdir\bin\WScilex-cli.exe !
! -nb                           !
! -noatomsautoload              !
! -args                         !
! Hello John                    !
! "C:\Users\Me"                 !

Let's note that in scilab -nw the "-nw" option is used by the scilab batch file to route the call to WScilex-cli.exe, without forwarding "-nw". Therefore, this one is not returned by sciargs().

Смотрите также

  • scilab — главный файл-сценарий для запуска Scilab'а и различных инструментов
  • getenv — get the value of an environment variable
  • macrovar — переменные в функции

История

ВерсияОписание
6.0.0 A column is returned, instead of formerly a row.
Report an issue
<< recursionlimit Конфигурация ver >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Jan 03 14:39:49 CET 2022