To transfer the defined file from the server (computer where the D2000 Server process is running) to a local computer.
Declaration
BOOL %FIO_ServerGetFile(
TEXT in srcFile,
TEXT in dstFile
)
Parameters
srcFile
File to transfer (copy) - complete path.
dstFile
Complete path on local computer.
Description
The function requests the D2000 Server process on reading the file defined by the parameter srcFile. The contents of the file is then transferred to the interpreter of the ESL script and written into file specified by the parameter dstFile.
The function can be used for transfer of files from the computer where the D2000 Server process is running to the client computer by using active picture.
If the file dstFile already exists, the function rewrites it.
The maximum size of the file to transfer is 1 GB.
If local computer uses platform Win32 the function copies (remains) also timestamps (create time, access time, modify time). If local computer uses target platform Linux or OpenVMS the function does not modify timestamps. If local computer uses source platform Linux or OpenVMS the function is able to identify only timestamp - modify time.
Return value
@TRUE - file was transferred @FALSE - function failed (given file does not exist, unable to rewrite or create the file dstFile or the size of the file srcFile is higher than 1 GB).
Pridať komentár