Skip to content

dos_pwdir

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

Returns the path to the current directory for the current drive, or the specified drive.

Syntax

(dos_pwdir [drive])

Parameters

drive

The drive name (for example, C:, D:).

Returns

The path to the current directory for specified drive if successful.

nil if not successful, or on error.

Example

Command: (dos_pwdir)
"c:\\temp\\"

Command: (dos_pwdir "D:")
"d:\\projects\\drawings\\"

Clone this wiki locally