Previous Topic: FAVORITESPATHNext Topic: function


FileExists

FileExists

Verifies that a file exists either on the source computer or on the destination computer. The first parameter is the file path and is a string value. The second parameter indicates whether to look on the source computer or on the destination computer. The second parameter is optional and is a Boolean value. If the second parameter is True, the interpreter looks on the source computer for the specified file. If the parameter is False or it is omitted, the interpreter looks on the destination computer.

Note: The Boolean parameter can only be used during General and Apply functions. If used otherwise, the parameter causes a syntax error or runtime error.

First parameter:

The File path (string value)

Second parameter:

The system indicator (Boolean value)

Usage:
FileExists( <file path> );
Examples:
if (FileExists( "c:\\My Documents\\myfile.txt"))
    StoreFile( "c:\\My Documents\\myfile.txt");

if (FileExists( "c:\\My Documents\\myfile.txt", SOURCE))
    ApplyFile( "c:\\My Documents\\myfile.txt");