FileExist

FileExist <VAR> <file>
FileExist <file>

Function return 1, if file or directory exists. Otherwise return 0.

Parameters

fileFile name, the existence of which will be checked. May contain variables and environment variables.

Switches

None.

Example

Determines if a directory exists:

If FileExist("C:\Program Files (x86)") Then
...
EndIf