QUB_USE
Syntax |
QUB_USE [device] |
Location |
SMSQ/E for Q68 |
As with FLP_USE this allows you to assign another three letter description to the QUB device driver, so that it can be accessed by programs which do not allow you to alter their devices. If no device is specified, then the device name is returned to the default qub.
Example
QUB_USE mdv
will ensure that any further attempt to access mdv1_ will actually access qub1_. If you later use the command:
QUB_USE
or:
QUB_USE qub
then you will once again be able to use the microdrives as well as qub1_.
Note 1
The QL’s operating system tests for directory device drivers in a fixed order: DEV, FLP, RAM, WIN and MDV. This means that if you rename a driver to three letters which refer to a device driver earlier in the list, that original device driver will be used in preference. For example:
QUB_USE flp
will not work (attempts to read a file from flp1_ will still try to read floppy disk drive number one) - you will need to also rename the floppy disk driver:
FLP_USE flp
Note 2
By default the QUB driver may not be loaded in SMSQ/E
CROSS-REFERENCE
FLP_USE, RAM_USE, DEV_USE, WIN_USE are similar. DMEDIUM_TYPE can be used to find out the type of device which a name actually refers to. DMEDIUM_NAME$ will return the default name of a device.