FILE_Move

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > File > FILE: functions working on files >

FILE_Move

 

Description

 

Move a file from one location to another.

 

Syntax

 

n = FILE_Move(FileName_Source, FileName_Destination [, ReplaceDestination])

 

Returns

 

Number.

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

 

Parameters

 

Name

Type

Optional

Meaning

FileName_Source

String

No

Source file name, full path.

FileName_Destination

String

No

Destination file name, full path.

ReplaceDestination

Number

Yes

%TRUE or %FALSE to replace file if destination file already exists.
Default value is %FALSE

 

Remarks

 

Restrictions

 

See also

 

File Module,

 

Examples