$DEFAULT string function $DEFAULT string function Syntax $DEFAULT ( mode ) Function Return a string containing the current or initial system default device, unit, and directory path for disk file access. Usage Considerations Parentheses must be included even when mode is omitted. Parameter mode Optional real value, variable, or expression (interpreted as an integer) that specifies the default path to be returned, as follows: l If the parameter is omitted, or has the value zero, the current system default path is returned. l If the parameter has the value one, the default path returned is the one that was in effect immediately after the eV+ system was booted from disk.
Details The system default device, unit, and directory path can be set by the CD or DEFAULT monitor command. The $DEFAULT function returns the current or initial default values as a string. The string contains the portions of the following information that have been set: device>disk_unit:directory_path where device is one of the following: DISK a local disk SYSTEM a disk device, drive, and subdirectory path currently set with the DEFAULT command For more details on valid devices, see the ATTACH program instruction on page 67. eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 154