Applies the contents of a directory from the source to the destination computer. This command takes two or three parameters. The first parameter is the directory path and is a string value. The second parameter is one of the following overwrite constants or a new directory path. 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 the user selects is applied. If the second parameter is a new directory path, the contents of the directory <directory name> are applied to <new directory name>. An optional overwrite method is permitted. You can apply only the stored directories. If the storing path contains a wildcard string during movement, do not include the wildcard in the moving path.
The Directory name (string value)
The new Directory name (string value)
The overwrite method (string value)
ApplyDirectory(<Directory name>, [overwrite method]); or
ApplyDirectory(<Directory name>, <new Directory name>, [overwrite method]);
ApplyDirectory("c:\\My Documents");
ApplyDirectory("c:\\My Documents", NEWER);
ApplyDirectory("c:\\My Documents", "c:\\Word Documents");
ApplyDirectory("c:\\My Documents", "c:\\Word Documents", ALWAYS);
/*Wildcard example*/
ApplyDirectory("c:\\My Documents\\*.fol", "c:\\New Path\\Word Documents", ALWAYS);
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|