Skip to content

dos_ispathsameroot

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

Compares two paths to determine if they have a common root component.

Syntax

(dos_ispathsameroot path1 path2)

Parameters

path1

The first path to be compared.

path2

The second path to be compared.

Returns

T if the paths share the same root component.

nil if the path do not share the same root component, or on error.

Example

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

Command: (dos_ispathsameroot "C:\\Program Files\\AutoCAD 2006\\" "e:\\drawings\\xrefs\\")
nil

Clone this wiki locally