<<

Contents

Search

>>

 

COPY_FILE

 

 

Function

 

 

Syntax:

COPY_FILE(<Source>,<Destination>)

 

<Source>

= <STRING-EXPRESSION>

<Destination>

= <STRING-EXPRESSION>

 

 

Meaning:

Copies the file <Source> to <Destination>.

 

COPY_FILE returns the following values:

Value

 Meaning

0

File has been copied successfully.

1

Source file does not exist or is the directory.

2

Destination file cannot be created.

1080

ERRORTEXT$ contains the error report.

 

Parameter:

Source

Source filename

Destination

Destination filename

 

Sample:

H% = COPY_FILE(SOURCE$,DEST$)

IF H% <> 0

THEN ... Error …

ENDIF

 

See also:

COPY_FILE_TO_CLIENT