Progress
Language Reference


OS-DRIVES Function

Interfaces
OS
SpeedScript
All
Windows only
Yes

Returns a comma-separated list of available drives.

SYNTAX

OS-DRIVES 

EXAMPLE

The following procedure populates a selection list with the output of the OS-DRIVES function, and then displays the list and prompts the user to select a drive. The procedure then informs the user that subsequent writes will be to the selected drive.

r-os-drv.p
DEFINE VARIABLE drives AS CHARACTER
  LABEL "Select a Drive"
  VIEW-AS SELECTION-LIST INNER-CHARS 3 INNER-LINES 5.
DEFINE FRAME f
  drives.

drives:LIST-ITEMS = OS-DRIVES.
UPDATE drives WITH FRAME f.
MESSAGE “Files will be written to drive” INPUT drives:SCREEN-VALUE. 

NOTE

On platforms other than Windows, OS-DRIVES compiles and executes, but returns the empty string ("").


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095