Skip to content

dos_isfilename

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

Verifies that a string is a valid filename.

Syntax

(dos_isfilename filename)

Parameters

filename

The string to validate. A filename is considered invalid if it is empty or contains any of the following characters: " * / : < > ? \ |

Returns

T if the string is a valid filename.

nil if the string is not a valid filename or on error.

Example

Command: (dos_isfilename "myfile.txt")
T

Command: (dos_isfilename "file<name>.txt")
nil

Clone this wiki locally