FolderExists Function

Checks if a folder exists.

Syntax
FolderExists(pathName)

Parameters

pathName
Specify the path name of the folder to be checked as a string. The drive can also be included. See ChDisk for the details.

Note


This function is executable only with the PC disk.


Return Values

  • If the folder exists: True
  • If the folder does not exist: False

See Also
FileExists, MkDir

FolderExists Function Example

If Not FolderExists("c:\TEST") Then
    MkDir "c:\TEST"
EndIf