Release 10.1A: OpenEdge Development:
Progress 4GL Reference

> ## OS-DRIVES function

> ##
> (Windows only)

> 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 © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095