Skip to content

dos_fileowner

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

Returns the current owner of a file. Note, the specified file must exist on an NTFS formatted drive.

Syntax

(dos_fileowner filename)

Parameters

filename

The source filename.

Returns

The current owner of the file, if successful.

nil if filename does not exist, or on error.

Example

Command: (dos_fileowner "z:\\drawing.dwg")
"BUILTIN\\Administrators"

Command: (dos_fileowner "c:\\users\\dale\\desktop\\drawing.dwg")
"MCNEEL\\dale"

Clone this wiki locally