File_CopyRoot()

… visits
Parent Previous Next

Syntax

File_CopyRoot(pSourceName As File_CopypSourceName, bSourcePartition As Byte, pDestName As File_CopypDestName, bDestPartition As Byte), Byte

Parameters

Parameter

Description

pSourceName

file's name to be copied

bSourcePartition

partition number where the file resides

pDestName

new destination file name

bDestPartition

partition number where the file will be copied to

Return value

cErrOK = success

Overview

cErrNotFound = source file or a directory path missing

cErrExists = destination already exists

cErrInvalidPath = bad partition number

cErrRWError

Copies a file between root directories

Copies a file between root directories only - a thin convenience wrapper around the path-aware File_Copy() for the common case where both files live at the top level. 

Example

File_ListPartitions()                       'Detect partitions

File_SetPartition(2)                        'Set currently active partition 2

File_CopyRoot("imgS.jpg",1,"imgD.jpg", 6)   'Copy imgS.jpg from partition 1 as imgD.jpg in partition 6

Created with the Personal Edition of HelpNDoc: Keep Your PDFs Safe from Unauthorized Access with These Security Measures