Skip to content

dos_serialno

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

Returns the serial number of a specified disk.

Syntax

(dos_serialno [drive])

Parameters

drive

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

Return

A string identifying the serial number if successful.

nil on error.

Examples

Command: (dos_serialno)
"4216120B"

Command: (dos_serialno "D:")
"FCF9CE6C"

Clone this wiki locally