Name

tk_getdir — dialog to get a directory path

Calling Sequence

    path=tk_getdir([Title="string"])
    path=tk_getdir(startdir,[Title="string"])
    path=tk_getdir(startdir,windowtitle)
    

Parameters

startdir

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

path

is the user selected file path if user answers "Ok" or the " " string if user answers "Cancel"

Title="string"

Optional argument which gives the title for the tk_getdir window. Warning: Use the new variable Title instead of the old variable title.

Description

WARNING: this function is deprecated (see uigetdir as a replacement of tk_getdir). It will be removed in Scilab 5.3.

Creates a dialog window for file selection.

Examples

 
tk_getdir()
tk_getdir("SCI/modules/")
tk_getdir(Title="Choose a directory name")
 

See Also

uigetdir , uigetfile , file , fileinfo