Salesforce

FileExist (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

FileExist (Magic xpa 4.x)

Checks whether a specified file or folder exists on a drive, and returns a Boolean (TRUE,FALSE).

Syntax:

FileExist(file name)

Parameters:

file name – An Alpha string that represents the file or folder name. The string may contain a path. If the path is not indicated, Magic xpa assumes the current directory.

Returns:

Boolean – TRUE or FALSE

Example:

FileExist('c:\magic\magic.ini') returns TRUE if the Magic.ini file exists in the C:\MAGIC directory.

Note:

If the path ends with a backslash (\), the function may return blank. It is recommended not to include the backslash at the end of the path.

See also:

FileCopy, FileDelete, FileDlg, FileInfo, FileListGet, FileRename

How Do I Check If a File Exists on Disk?

The Online and Rich Client Samples projects (program EL17 and REL17)

Reference
Attachment 
Attachment