QB64.com

QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.

The _DIREXISTS function determines if a designated file path or folder exists and returns true (-1) or false (0).

Syntax

dirExists% = _DIREXISTS(filepath$)

Description

Example(s)

Checks if a folder exists before proceeding.


IF _DIREXISTS("internal\temp") THEN
    PRINT "Folder found."
END IF

See Also