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 >> GUI > uigetfile


dialog window to get a file(s) name(s), path and filter index



Input parameters


a string matrix which gives the file masks to use for file selection. file_mask is written with Unix convention. The default value is '*'.

we can also add descriptions for masks, for example ["*.x*","X files";"*.bin","BIN files"].


a character string which gives the initial directory used for file search. By default uigetfile uses the previously selected directory.


a character string which gives the title of the uigetfile window. By default uigetfile's title is 'uigetfile'.


a boolean which allows to load only one file if it is at '%f' (false) or multiple files if it is at '%t" (true). By default uigetfile's multiple file selection is not enable.

Output parameters


matrix of string which give the user selected file(s) (path + file(s) name(s)) if user answers "Ok" or the " " string if user answers "Cancel".


is the user selected file(s) path if user answers "Ok" or the " " string if user answers "Cancel".


is the user selected filter index on the list box if user answers "Ok" or '0' string if user answers "Cancel"


Creates a dialog window for file(s) selection.


On Windows, java component used by uigetfile browse also .zip archive then it is very slow with big .zip files.

To disable, this feature:

if getos() == 'Windows' then unix("REGSVR32 /u %WINDIR%\System32\zipfldr.dll") ;end

To re-enable,

if getos() == 'Windows' then unix("REGSVR32 %WINDIR%\System32\zipfldr.dll") ;end


uigetfile(["*.x*","X files";"*.bin","BIN files"],"SCI/modules/gui/macros/")
uigetfile(["*.sce";"*.bin"],"SCI/modules/gui/macros/", "Choose a file name", %t);
uigetfile(["*.sce";"*.bin"],"SCI/modules/gui/macros/", "Choose a file name", %f);

See also

  • uiputfile — Open standard dialog box for selecting and saving file.
  • uigetdir — dialog for selecting a directory
  • x_dialog — Dialog for interactive multi-lines input.
  • file — file management
  • read — matrices read
  • write — write in a formatted file
  • exec — исполнение файла-сценария
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Feb 14 15:13:26 CET 2017