Applies a directory's contents 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. There are three constants which indicate the overwrite method: ALWAYS, NEWER or NEVER. If the overwrite constant is omitted, the default NEWER or the user selected overwrite method 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. Only directories that have been stored can be applied. When moving, if the storing path contains a wildcard string, 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 © 2013 CA.
All rights reserved.
|
|