Skip to content

dos_openp

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

Returns the open status of a file. This function has use in network environments. DOSLib determines whether a file is already open by attempting to open the file for exclusive-sharing access. If a sharing violation occurs during the attempt, the file is already open and T is returned. If the attempt causes a different error, such as access denied or file not found, then DOSLib will not be able to tell whether the file is already open, and nil is returned.

Syntax

(dos_openp filename)

Parameters

filename

The source filename.

Returns

T if filename is open.

nil if the file is closed, or on error.

Example

Command: (dos_openp "C:\\Program Files\\Autocad 2006\\Sample\\colorwh.dwg")
T

Clone this wiki locally