xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

FileMove()

Moves a file to another directory.

Syntax

FileMove( <cSourceFile>, <cTargetFile> ) --> nErrorCode

Arguments

<cSourceFile>
This is a character string holding the name of the file to move. It must include path and file extension. The path can be omitted from <cSourceFile> when the file resides in the current directory.
<cTargetFile>
This is a character string with the new file name including file extension. Drive and/or path are optional.

Return

The function returns zero on success or a numeric error code on failure.

Description

The function moves <cSourceFile> to a file specified with <cTargetFile>. The target file must be on the same drive as the source file.

Info

See also:COPY FILE, FileCopy()
Category: CT:DiskUtil , File functions , Low level file functions
Source:ct\disk.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe