DSKF()
This page was last modified 21:48, 5 November 2021 by Mars2000you. Based on work by Gdx.

Contents

Effects

  • Returns the number of free clusters on the disk inserted in the specified drive.
  • If you use Nextor in MSX-DOS 2 mode: Returns the real free space in kB on the disk inserted in the specified drive if this drive is not in the zero allocation information mode.

Note: If the drive has the reduced allocation information mode active when using Nextor in MSX-DOS 2 mode, the DSKF instruction will always return the real free space. Only the zero allocation information mode will give you zero as result when using DSKF.

Syntax

DSKF(<Number>)

Parameter

<Number> is a value between 0 and 8, according the following table:

Number Drive
0 Default drive
1 Drive A
2 Drive B
3 Drive C
4 Drive D
5 Drive E
6 Drive F
7 Drive G
8 Drive H

Example

10 CLS:PRINT "Free clusters: ";DSKF(0)
20 PRINT:IF DSKF(0)<100 THEN PRINT "Please insert a new disk!"

Related to

FILES, LFILES

Compatibility

Disk BASIC 1.0 or higher / both modes of Nextor OS but new effect only in MSX-DOS 2 mode