DirExists

Top  Previous  Next

Prototype

 

BoolExists:=DirExists(FileName)

 

Description

 

Checks if there is the directory passed as parameter.

 

Parameters

 

FileName: A string containing a valid path and directory.

 

Returned value

 

BoolExists: true or false logical value. If it returns true, directory exists, on the contrary, either it doesn't exist or it is not found.

 

Notes

 

None.

 

Example

 

// Check if there is really a directory

bExists:=DirExists ('c:\files');

 

// Create a directory if it doesn't exist

If bExists=False then CreateDir('c:\files');