Skip to content

dos_pathquotes

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

Adds or removes a surrounding double-quote characters to a path string.

Syntax

(dos_pathquotes path [T])

Parameters

path

A path to manipulate.

T

If specified, the surrounding double-quotes will be removed if necessary. Otherwise, a the surrounding double-quotes will be added if necessary.

Returns

The modified path string if successful.

nil on error.

Example

Command: (dos_pathquotes "C:\\Program Files\\AutoCAD 2006\\")
"\"C:\\Program Files\\AutoCAD 2006\\\""

Command: (dos_pathquotes "\"C:\\Program Files\\AutoCAD 2006\\\"" T)
"C:\\Program Files\\AutoCAD 2006\\"

Clone this wiki locally