This function copies a file to a different destination.
Context
Windows client,
Windows server,
Mobile client,
Mobile server,
Java client,
Java server,
Adelia Web client,
Adelia Cloud client.
Parameters
ALPHA(n) |
SourceFile |
Name of the original file. |
ALPHA(n) |
DestFile |
Name of the destination file. |
BOOL |
Replace |
Replaces the existing destination file (where applicable). |
BOOL |
Successful |
Return code. *TRUE if the function was performed successfully. Output parameter. |
Example
ALPHA(256) |
File1 |
ALPHA(256) |
File2 |
BOOL |
Replace |
BOOL |
OK |
* copies the file 'c:\temp\test.txt' to 'c:\temp\test2.txt', forcing replacement of the existing file |
File1 |
= 'c:\temp\test.txt' |
File2 |
= 'c:\temp\test2.txt' |
Replace |
= *TRUE |
CALL_DLL |
'VaToolBx' 'VaToolBxCopyFile' File1 File2 Replace OK |
IF NOT OK |
|
* Error processing... |
|
END |
|