Previous Topic: DetectionNext Topic: DWORD


DirectoryExists

DirectoryExists

Verifies that a directory exists. This command takes two parameters. The first parameter is the directory path and is a string value. The second parameter indicates whether to look on the source machine or 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 Directory path (string value)

Second parameter:

The machine indicator (Boolean value)

Usage:
DirectoryExists( <Directory path>, [Boolean] );
Example:
if (DirectoryExists( "c:\\My Documents"))
 StoreDirectory( "c:\\My Documents");

if (DirectoryExists( "c:\\My Documents", SOURCE))
 ApplyDirectory( "c:\\My Documents");