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.
The File name (string value)
The new File name (string value)
The overwrite method (string value)
ApplyFile(<File name>, [overwrite method]); or
ApplyFile(<File name>, <new File name>, [overwrite method]);
ApplyFile("c:\\temp\\file.txt");
/*Wildcard example*/
ApplyFile("c:\\My Documents\\*.txt", "c:\\New Path\\Word Documents", ALWAYS);
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|