Skip to content

dos_pathbackslash

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

Adds or removes a backslash to the end of a path string.

Syntax

(dos_pathbackslash path [T])

Parameters

path

A path to manipulate.

T

If specified, the backslash will be removed if necessary. Otherwise, a backslash will be added if necessary.

Returns

The modified path string if successful.

nil on error.

Example

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

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

Clone this wiki locally