Example 1 illustrates the usage of $DO loops and $SELECT/$WHEN statements.

Explanation:

The script runs trough all potential drive letters ($DO FOR %i FROM 1 TO 26)  
and selects the type of drive and drive name.
The drive type for each letter is selected (via $SELECT) and the subsequent $WHEN
clauses allocates the relating drive type, name, space. 

In procedure volinfo you find the following statement:

$IF %n = '' THEN %n = 'NONE'

which is a more readable form of the VDS "IF" statement and becomes translated into 
the VDS syntax. As the precompile calls the requested procedure with "RUN" the required
parameters must be enclosed in double quotes ("). If within the line also double quotes
are required, you must use single quotes, they will be translated later on in double
quotes.
 
Action:

1. Run the "MACRO.EXE" (ADD-in Tools)

2. Start "PRECOMPILE" to get a translated version.

3. Run EXAMPLE.DSC (PF9)


 