DMEDIUM_DENSITY

Syntax

DMEDIUM_DENSITY [(#channel)] or

DMEDIUM_DENSITY (\file)

Location SMSQ/E v2.73+

This function returns a number representing the density of the medium on which the specified file or directory is located, or to which the specified channel is open. If no parameter is specified, it looks to channel #3 (or #1 if #3 is not open). An error will occur if the specified channel is not open or the given file does not exist.

The value returned is:

  • 0 Non-directory device
  • 1 Double Density
  • 2 High Density
  • 3 Extra Density
  • 255 Hard disk or ram disk as they have no density.

Example

PRINT DMEDIUM_DENSITY(\flp1_)

CROSS-REFERENCE

DMEDIUM_NAME$ gives the name of the disk attached to the specified channel. DMEDIUM_RDONLY and DMEDIUM_FORMAT are also useful.