Previous Topic: FAVORITESPATHNext Topic: function


FileExists

FileExists

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

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

First parameter:

The File path (string value)

Second parameter:

The machine 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");