Skip to content

dos_drive

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

Returns the current drive or changes the current drive to the one specified.

Syntax

(dos_drive [drive])

Parameters

drive

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

Returns

A string identifying the current or new drive if successful.

nil on error.

Example

Command: (dos_drive)
"C:"

Command: (dos_drive "D:")
"D:"

Clone this wiki locally