SYS(5) - Default Drive

Returns the current Visual FoxPro default drive.

SYS(5)

Return Values

Character

Remarks

This function returns the current Visual FoxPro default drive. Use SET DEFAULT to specify a default drive.

Example

IF _DOS OR _WINDOWS
   SET DEFAULT TO C:
ENDIF
? SYS(5)

See Also

DRIVETYPE( ) | SET DEFAULT | SYS( ) Functions Overview