dirnamebox

Open a dialog can be selected a directory.

dirnamebox <title> [<initialdir>]

Parameters

string <title>
The title of dialog box
string <initialdir> (optional default="")
Initial directory of dialog box.
When an empty string and an invalid path is specified, the initial directory is the user desktop.

Return Value

System variable <result>
If the user specifies a directory name and clicks OK button, set to 1. The directory name is stored in "inputstr."
If the user cancels or closes the dialog, set to zero.
System variable <inputstr>
The directory name entered by the user

Example

dirnamebox 'select a directory'
if result<>0 then
	messagebox inputstr 'selected directory'
endif