Skip to content

dirExists

MicroBlaster edited this page Jul 3, 2020 · 1 revision

Purpose: Checks to see if a directory exists.

Syntax: dirExists var {dirname}

var: The variable to hold the result of the file check. This variable will be set to TRUE (1) if the dir exists, or FALSE (0) if it does not.

{dirname}: The name of the dir to check.

Notes: This command is useful for finding out if a dir exists before attempting to use it.

Example:

dirExists $exists "Scripts\mombot4p"
if $exists = False
    makeDir "Scripts\mombot4p"
end
Clone this wiki locally