Skip to main content
Skip table of contents

f$FileCopy (f$DateiKopieren)


f$FileCopy (f$DateiKopieren)

Copy a file by entering the full file name including path. If the destination file already exists, it is overwritten.

Please note that, when entering a path in the file name, the character "\" must be entered twice ("\\").

Syntax:

Status = f$FileCopy( SourceFile, DestFile [,readonly] )

 

Argument

Type

Meaning

 

SourceFile

String

Name of the file to be copied

 

DestFile

String

Name of the new file

 

Readonly

Integer

1 – mark the destination file as read-only
0 – the destination file is not read-only, even if the source file was.

This parameter is optional. If it is not entered, the destination file has the same property as the source file.

Result:

Integer

Operation status: 1 – successfully copied, otherwise 0

Example:

Status = f$FileCopy(' c:\\temp\\fileold.txt', 'c:\\temp\\filenew.txt' )

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.