%FIO_ServerGetFile function


Function
Transfer of defined file from server (computer where the process D2000 Server is running) to 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 process D2000 Server on reading the file defined by the parameter dsrFile. 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 process D2000 Server is running to the client computer by using active picture.

If the file dstFile already exists, the function rewrites it.

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).
Example
 BOOL _bOK
 
 _bOK := %FIO_ServerGetFile("c:\reports\rep1.xls", "c:\appldata\reports\rep1.xls") 

Napíšte komentár