API Reference > ZipUtils Namespace > Functions > ZipUtils::copyFile Function
ZipUtils::copyFile Function
Syntax
C++
int copyFile(const OdString & existingFileName, const OdString & newFileName);

ZipUtils.h

Parameters 
Description 
const OdString & existingFileName 
[in] A string containing path to exsiting file.  
const OdString & newFileName 
[in] A string containing path to new file.  

Returns 0 if file was successfully copied; otherwise, the method returns an appropriate error.

Copies existing file to new location under specified name.

Copyright (c) 2002-2021. Open Design Alliance. All rights reserved.