DOS_DRIVE$

Syntax

directory$ = DOS_DRIVE$(drive%)

Location

SMSQ/E for QPC

This reads back the currently connected directory of the DOS device.

Example

If we continue from the example above for DOS_DRIVE, then:

PRINT DOS_DRIVE$(2)

Will print “C:\WINDOWS”.