CopyFile - ObjectVision/GeoDMS GitHub Wiki
File, Folder and Read functions CopyFile
- CopyFile(source_filename, target_filename)
CopyFile(source_filename, target_filename) copies the source_filename to the target_filename.
If the target_filename already exists, it will be overwritten (the InitFile function does not overwrite an existing target_filename)
In the GeoDMS use forward slashes(/) in path names in stead of backward slashes.
data items or literal source_filename and target_filename with string value type
The source_filename must exist, if not an error is generated.
The folder of the target_filename to which the file is copied will be created, if it did not already exists.
parameter<string> CopyFile := CopyFile('c:/tmp/test.txt', 'd:/tmp/test.txt');
result: updating this item copies the source file c:/tmp/test.txt to the target file d:/tmp/test.txt, even if the targetfile does not exists.