Previous Topic: ApplyDirectoryNext Topic: ApplyFunction


ApplyFile

ApplyFile

Applies a file from the source to the destination computer. This command takes two or three parameters. The three constants which indicate the overwrite method are: ALWAYS, NEWER, or NEVER. If the overwrite constant is omitted, the default NEWER or the overwrite method that the user selects, is applied. If the second parameter is a new file path, the file <file name> is applied to <new file name>. An optional overwrite method is allowed too. This command recognizes the asterisk (*) as a wildcard. Only the stored files can be applied. If the storing path contains a wildcard string during movement, do not include the wildcard in the moving path.

First parameter:

The File name (string value)

Second parameter:

The new File name (string value)

Third parameter:

The overwrite method (string value)

Usage:
ApplyFile(<File name>, [overwrite method]); or
ApplyFile(<File name>, <new File name>, [overwrite method]);
Example:
ApplyFile("c:\\temp\\file.txt");
/*Wildcard example*/
ApplyFile("c:\\My Documents\\*.txt", "c:\\New Path\\Word Documents", ALWAYS);