filedialog Parameter

Default drive, directory, and file mask for the Open, Get and Save as dialogs.

Note: Only the Get dialog is valid in the Source view.

Scope: Global

Syntax

Options

drive 
Changes the default drive used by the Open, Get and Save as dialogs.
DriveLetter 
Any local or remote drive that your system recognizes.
directory 
Changes the default directory used by the Open, Get and Save as dialogs.
Path 
A path name for any directory on the defined drive.
filemask 
Changes the default filemask used by the Open, Get and Save as dialogs.
Mask 
A file name that may include the global filename characters * and ?. No files are masked unless they are specified.

Description

The filedialog parameter allows you to specify the default drive, directory and filemask used by the Open, Get and Save as dialogs. No validation checks are done when the parameter is set.

Examples

  1. On OS/2 and Windows systems, to specify G as the default drive used by the file dialogs (Open, Get, and Save as dialogs), type:
    set filedialog.drive g 
  2. To specify /coolstuf/lpex as the default directory used by file dialogs, type:
    set filedialog.directory /coolstuf/lpex

    To specify \coolstuf\lpex as the default directory used by file dialogs, type:

    set filedialog.directory \coolstuf\lpex
  3. To have the file dialogs display only c files by default, type:
    set filedialog.filemask *.c
  4. To have the file dialogs display files that differ from the filename goodlpex.txt only in the seventh character, type:
    set filedialog.filemask goodlp?x.txt
  5. To determine the currect default filemask used by the file dialogs, type:
    query filedialog.filemask

API Return Codes

None.