Skip to content

dos_drivetype

Dale Fugier edited this page Jul 1, 2026 · 1 revision

Returns the type of the specified drive; either removable, fixed, CD-ROM, RAM disk, or a network drive.

Syntax

(dos_drivetype [drive])

Parameters

drive

The drive name (for example, C:, D:). If not specified, the current drive is used.

Returns

A string describing the drive type if successful.

nil on error.

Example

Command: (dos_drivetype)
"FIXED"

Command: (dos_drivetype "F:")
"CDROM"

Command: (dos_drivetype "Z:")
"REMOTE"

Clone this wiki locally